Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by ikegami (Patriarch)
on Dec 11, 2007 at 06:47 UTC ( [id://656325]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Math::Combinatorics qw( permute );
    
    ...
       $s =~ s/$others//g;
       return $valid{$s};
    }
    
  2. or download this
    use Math::Combinatorics qw( permute );
    
    ...
       $s =~ s/$others//g;
       return $s =~ $valid;
    }
    
  3. or download this
    use Math::Combinatorics qw( permute );
    use Regexp::List qw( );
    ...
       $s =~ s/$others//g;
       return $s =~ $valid;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-16 14:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found