Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: How to use a negative backreference in regex?

by gone2015 (Deacon)
on Feb 28, 2009 at 13:36 UTC ( [id://747151]=note: print w/replies, xml ) Need Help??


in reply to Re: How to use a negative backreference in regex?
in thread How to use a negative backreference in regex?

Indeed. And the reason [^\1] doesn't work is... well because within a character class \1 means 1, not the contents of the capture buffer 1. Which is a long way of saying it doesn't work because it doesn't work (however plausible it may look).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-20 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found