Regular expression

Jean-Michel Pichavant jeanmichel at sequans.com
Tue Jul 21 13:22:05 EDT 2009


Rhodri James wrote:
> On Tue, 21 Jul 2009 14:30:47 +0100, Peter Fodrek 
> <peter.fodrek at stuba.sk> wrote:
>
>> Dear conference!
>>
>> I have  third party regular expression
>>
>>  self.pattern_main = 
>> re.compile('(\s+|\w(?:[+])?\d*(?:\.\d*)?|\w\#\d+|\(.*?\)|
>> \#\d+\=(?:[+])?\d*(?:\.\d*)?)')
>
> Also, whoever wrote this regular expression should be taken
> out and slapped with a wet fish, for it is abominable and
> unlikely to look much like what you actually want.

Here, take that fish and please, hit really hard !

**                 ;'-. 
     `;-._        )  '---.._
       >  `-.__.-'          `'.__
      /_.-'-._         _,   ^ ---)
      `       `'------/_.'----``


JM
**




More information about the Python-list mailing list