in reply to Re^3: replace fist and last occurrences of N
in thread replace fist and last occurrences of N

I apologise. You are quite right. My first read through the OP's node left me with the impression that his problem was a whole lot more interesting than it is! I thought he was wanting to quote the first and last run only, leaving all other n/N runs unaltered.


Perl is environmentally friendly - it saves trees
  • Comment on Re^4: replace fist and last occurrences of N

Replies are listed 'Best First'.
Re^5: replace fist and last occurrences of N
by jethro (Monsignor) on Jul 13, 2008 at 02:54 UTC
    I agree, that is more interesting. So at least you had more fun writing your solution than I had ;-)