in reply to Re: s/// only replacing most of the time...
in thread s/// only replacing most of the time...

My last reply does that here... you use positive lookahead to match only one char in reality, then use the string length you are matching to get the right hand position. You could also do it by using \G and pos, but I wouldn't suggest it. The positive lookahead works well with these fixed length string matches.

                - Ant
                - Some of my best work - (1 2 3)

  • Comment on Re^2: s/// only replacing most of the time...