Find where a certain string of numbers occurs using Regex and python : Out of a large text file I want to extract all the places where "RA"+6 numbers after it occur. How would I do this? 

For instance, I want the new txt file to look like
RA000000
RA111111
RA222222
RA333333
RA444444

Where other instances of RA do not show up either.