John Machin wrote: > > Any feedback on what would be "the pythonic way" to do this would be > > much appreciated! --snip-- > > IMHO that flight of geese heading equatorwards for winter is not Xic for > any language X. Compare with:
He he, good point. > 2nd comment: Make a habit of NOT using the names of built-ins like > "file" for your own names. Pretend they are reserved words. Doesn't > matter in this case, but will save you grief some day soon. > Agree. > 3rd comment: Read the section in the re manual that explains the > difference between search and match. Searching for "^foo" will give the > same results as using match() with "foo" or the redundantly anchored > "^foo". However some regex engines when presented with Good point. > 4th comment: what you have called "regx" is a match object. "mobj" might > be a better choice. The term "regex" is applied to a pattern, or > sometimes to the compiled re object. ] > > HTH, > John Thank you for taking the time :-) All points are noted. Holger, -- http://mail.python.org/mailman/listinfo/python-list