in reply to Re^2: Extracting part of a substring with one regex (with backreference?)
in thread Extracting part of a substring with one regex (with backreference?)

I think that you have cut-and-pasted Samy_rio's code directly from the node, so you also copied the plus sign and embedded newline that the Perlmonks site added for code wrapping. Click the 'download' link, and you will see that his code is two lines, not three.
  • Comment on Re^3: Extracting part of a substring with one regex (with backreference?)

Replies are listed 'Best First'.
Re^4: Extracting part of a substring with one regex (with backreference?)
by loris (Hermit) on Oct 28, 2005 at 13:09 UTC

    Uh oh, more egg on face. Sorry.

    loris


    "It took Loris ten minutes to eat a satsuma . . . twenty minutes to get from one end of his branch to the other . . . and an hour to scratch his bottom. But Slow Loris didn't care. He had a secret . . ."