in reply to Re: Pattern Matching with REGEXP: Is the match position trackable?
in thread Pattern Matching with REGEXP: Is the match position trackable?

One could also trap the 5+ and subtract the length from pos, esp. if worried about compatability as this is rather new (5.6) IIRC.

--
perl -pew "s/\b;([mnst])/'$1/g"

  • Comment on Re: Re: Pattern Matching with REGEXP: Is the match position trackable?

Replies are listed 'Best First'.
Re: Re: Re: Pattern Matching with REGEXP: Is the match position trackable?
by luthor (Initiate) on Sep 18, 2002 at 16:17 UTC
    First of all, thank you all very much for replying to my problem. I will start going through all of your suggestions/fixes and come back later today :)