Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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

by larryk (Friar)
on Mar 02, 2009 at 22:01 UTC ( [id://747557]=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?

thanks - it's been a while :)

I eventually ended up with the following:

my $unique = qr/^(.)(?!\1) (.)(?!\1|\2) (.)(?!\1|\2|\3) .$/x;
   larryk                                          
perl -le "s,,reverse killer,e,y,rifle,lycra,,print"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-24 12:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found