[Chicago-talk] Regex question

Jay Strauss me at heyjay.com
Sat Mar 19 12:52:34 PST 2005


Andy Lester wrote:
>> Is there a way to tell a regex to only search & replace between a 
>> certain match?  Is there a name for this function that I may read about?
> 
> 
> Yes, look for the "flip-flop" operator, where it's roughly
> 
> if ( /regex1/../regex2/ ) {
>       # do something
> }
> 
> It's taken directly from Awk.
> 
> xao
> 

Thanks, that's perfect

Jay


More information about the Chicago-talk mailing list