regular expression negate a word (not character)

Dr.Ruud rvtol+news at isolution.nl
Fri Feb 1 05:36:11 EST 2008


Greg Bacon schreef:
> Dr.Ruud:

>> I negated the test, to make the regex simpler: [...]
>
> Yes, your approach is simpler. I assumed from the "need it all
> in one pattern" constraint that the OP is feeding the regular
> expression to some other program that is looking for matches.

Yes, I assumed about the same, but thought it would be a nice
alternative anyways.
Happy Perling!

-- 
Affijn, Ruud

"Gewoon is een tijger."




More information about the Python-list mailing list