Re: New to using re. Search for a number before a string.

2013-11-02 Thread Captain Dunsel
On Friday, November 1, 2013 5:33:43 PM UTC-4, Captain Dunsel wrote: > I have a text file that has lines with numbers occasionally appearing right > before a person's name. For example: > > > > COLLEGE:ENROLLMENT:COMPLETED EVALUATIONS:624309FUDD, ELMER > > >

New to using re. Search for a number before a string.

2013-11-01 Thread Captain Dunsel
I have a text file that has lines with numbers occasionally appearing right before a person's name. For example: COLLEGE:ENROLLMENT:COMPLETED EVALUATIONS:624309FUDD, ELMER where I want to search for the name "ELMER FUDD" and extract the number right in front of it "608309" when such a number a