> On 1 Oct 2002 at 18:47, [EMAIL PROTECTED] wrote: > > > > > all text up to, but not including the string "union". How about (Perl6) /(.*?) union {$pos -= length('union');}/ This gets everything up to and including the first instance of 'union', then gets rid of the bit at the end that we don't want. The capturing parentheses ensure that we return the part of the string we want, and we manually reset $pos to the correct position. This is easy to understand, and very extensible. Joe Gottman
- exegesis 5 question: matching negative, multi-byte ... esp5
- Re: exegesis 5 question: matching negative, mu... Mike Lambert
- exegesis 5 question: matching negative, multi-... Luke Palmer
- Re: exegesis 5 question: matching negative... esp5
- Re: exegesis 5 question: matching nega... Jonathan Scott Duff
- Re: exegesis 5 question: matching ... Simon Cozens
- Re: exegesis 5 question: matching negative... Peter Behroozi
- Re: exegesis 5 question: matching negative, mu... m_perl6lang_2002100700