Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: Matching backslash in regexp negative lookbehind

by soonix (Monsignor)
on Jan 02, 2018 at 21:55 UTC ( #1206562=note: print w/replies, xml ) Need Help??


in reply to Re^2: Matching backslash in regexp negative lookbehind
in thread Matching backslash in regexp negative lookbehind

Yes. But there's another possibility: - quoting Regexp Quote-Like Operators in perlop:
x   Use extended regular expressions;
specifying two x's means \t and the SPACE character are ignored within square-bracketed character classes
  • Comment on Re^3: Matching backslash in regexp negative lookbehind

Replies are listed 'Best First'.
Re^4: Matching backslash in regexp negative lookbehind
by AnomalousMonk (Chancellor) on Jan 02, 2018 at 22:09 UTC

    Forgot about that. I'm not really up on the latest regex extensions. Offhand, do you know with what Perl version the  xx modifier modification was added?


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

      > with what Perl version

      5.26

      ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
      I hadn't known about it either, I simply looked it up to see wether the doc contained a warning about that, and found this.

      Thanks choroba for the good idea (and moreso for implementing it)!

        Our own choroba's! Excellent! I like this new feature and I like indented heredocs. Two good reasons to upgrade.


        The way forward always starts with a minimal test.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1206562]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2018-06-21 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (117 votes). Check out past polls.

    Notices?