Re: greedy match wanted

2005-03-04 Thread alexk
Thanks, I'll try your solution. Alex. -- http://mail.python.org/mailman/listinfo/python-list

Re: greedy match wanted

2005-03-03 Thread Paul McGuire
This is very similar to some common problems in developing pyparsing grammars. One of my early attempts at parsing CORBA IDL listed the valid parameter passing mechanisms as ('in' | 'out' | 'inout'). As you can imagine, I never successfully matched an 'inout', since the 'in' match came first. (P

Re: greedy match wanted

2005-03-03 Thread Kent Johnson
alexk wrote: My problem is as follows. I want to match urls, and therefore I have a group of long valid domain names in my regex: (?:com|org|net|biz|info|ac|cc|gs|ms| sh|st|tc|tf|tj|to|vg|ad|ae|af|ag| com\.ag|ai|off\.ai|al|an|ao|aq|

greedy match wanted

2005-03-03 Thread alexk
Hi, I would like to request your help. My problem is as follows. I want to match urls, and therefore I have a group of long valid domain names in my regex: (?:com|org|net|biz|info|ac|cc|gs|ms| sh|st|tc|tf|tj|to|vg|ad|ae|af|ag| com\.ag|ai|off