Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: qr/STRING/ fails with certain lookbehind expressions

by Anonymous Monk
on Jul 22, 2013 at 14:54 UTC ( #1045666=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $pattern =  "(?<!st)abc";    # 'st' in lookbehind
    qr/$pattern/i;          # error: 'Variable length lookbehind not imple
    +mented in regex...
    
  2. or download this
    my $pattern = "(?<!sz)abc";  # 'sz' in lookbehind
    qr/$pattern/i;                 # this works fine
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045666]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (18)
As of 2014-07-30 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (236 votes), past polls