in reply to Re: Replacing 3 and 4 digit numbers.
in thread Replacing 3 and 4 digit numbers.

Please see Special Backtracking Control Verbs for (*SKIP) (*FAIL) in perlre.

Hey! You fooled me into thinking that you want htmanning to RTFM.

Discipulus++'s answer was a real insight. I had never expected that readable words are part of perl's RE syntax. I've looked into my local perl, and lo and behold, it's supported even here, in 5.18.1 (but still marked experimental).

The only thing that I don't like is that perlre does not state since which version this feature is supported.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^3: Replacing 3 and 4 digit numbers.
by choroba (Cardinal) on Apr 09, 2016 at 22:52 UTC
Re^3: Replacing 3 and 4 digit numbers.
by AnomalousMonk (Archbishop) on Apr 08, 2016 at 20:34 UTC
    ... since which version this feature is supported.

    Special Backtracking Control Verbs first appeared in Perl 5.10.


    Give a man a fish:  <%-{-{-{-<