Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: REgular expression to check the string that allows "a","b" and "c" to occur only once in any order.

by oha (Friar)
on Dec 11, 2007 at 10:12 UTC ( [id://656363]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "ok!\n" unless /([abc]).*\1/;
    
  2. or download this
    print "ok!\n" unless /(([abc]).*\2|[^abc])/;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (1)
As of 2024-04-25 00:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found