Regular expression, "not this string"

2007-03-12 Thread Dave Cardwell
ative look-ahead, but I haven't used this area of regular expressions before so I'm struggling. A solution or prod in the right direction would be lovely. -- Best wishes, Dave Cardwell. http://perlprogrammer.co.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: Regular expression, "not this string"

2007-03-12 Thread Dave Cardwell
t clearer to me, thanks. I'll take another look at the perlre now I see what it's getting at. -- Best wishes, Dave Cardwell. http://perlprogrammer.co.uk/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Regular expression, "not this string"

2007-03-12 Thread Dave Cardwell
Rob Dixon wrote: Dave Cardwell wrote: Hello there, I'm having trouble constructing a regular expression that would do the following: FOO... ...followed by anything but BAR (non-greedy)... ...followed by BAZ (captured)... ...followed by anything but BAR (greedy)... ...followed by BAR

Re: Regular expression, "not this string"

2007-03-12 Thread Dave Cardwell
Rob Dixon wrote: Dave Cardwell wrote: Rob Dixon wrote: Dave Cardwell wrote: Hello there, I'm having trouble constructing a regular expression that would do the following: FOO... ...followed by anything but BAR (non-greedy)... ...followed by BAZ (captured)... ...followed by anything bu