Re: regex with nots in it
From: Ben Holness (usenet_at_bens-house.org.uk)
Date: 10/06/03
- Next message: Anno Siegel: "Re: code with style"
- Previous message: David Combs: "Re: Order of evaluation of expressions"
- In reply to: Bernard El-Hagin: "Re: regex with nots in it"
- Next in thread: Anno Siegel: "Re: regex with nots in it"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 06 Oct 2003 13:40:28 +0100
>> doesn't do what I want :( perlre suggests that it's easier to have it as
>> two regular expressions, which is what I was trying to avoid.
>
>
> Why? It's a perfectly valid suggestion.
The system I have built checks messages for particular content. The
content is defined in a database, so if I need more than one regex, I need
to implement some slightly more clever code than just getting the regex
from the db and matching :)
The suggestions from yourself and Anno are what I needed though;
/Perl(?!.*PHP)/ does exactly what I need :)
Thanks,
Ben
- Next message: Anno Siegel: "Re: code with style"
- Previous message: David Combs: "Re: Order of evaluation of expressions"
- In reply to: Bernard El-Hagin: "Re: regex with nots in it"
- Next in thread: Anno Siegel: "Re: regex with nots in it"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|