Positions of regexp groups

Magnus Lie Hetland mlh at selje.idi.ntnu.no
Fri Apr 8 09:18:27 EDT 2005


Just a quick question: Does anyone have a simple way of finding the
positions (start, end) of the groups in a regexp match? AFAICS, the re
API can only return the contents...?

-- 
Magnus Lie Hetland                    Fall seven times, stand up eight
http://hetland.org                                  [Japanese proverb]



More information about the Python-list mailing list