I'm guessing that the name "FUDD, ELMER" varies. In that case, you might try 
something like this:

>>> id_num_regex = re.compile(r'\d+(?=\w+\b,.+?)')
>>> id_num_regex.findall(t)
['624309']

This would account for first names such as 'Mary Ann' and also automatically 
matches characters only to the end of the line, since you have not flagged 
re.DOTALL.

Justin
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to