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

Re^2: Regex question once-only use of chars in a charset

by John M. Dlugosz (Monsignor)
on May 15, 2011 at 13:41 UTC ( [id://904968]=note: print w/replies, xml ) Need Help??


in reply to Re: Regex question once-only use of chars in a charset
in thread Regex question once-only use of chars in a charset

Cool! Sorting the word as well is a game changer! Then you just check off the letters in order.

Replies are listed 'Best First'.
Re^3: Regex question once-only use of chars in a charset
by CountZero (Bishop) on May 15, 2011 at 18:51 UTC
    It is an old trick. Transform both sides of the comparison to a canonical form and the whole problems becomes much easier to solve.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-03-28 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found