Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: Looking for a cleaner regex ( trie since 5.10 ! )

by LanX (Saint)
on Dec 08, 2017 at 15:42 UTC ( [id://1205177]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Looking for a cleaner regex ( trie since 5.10 ! )
in thread Looking for a cleaner regex

Especially since you can keep the alternatives inside an qw/ / or an @array and simply join "|", for the regex string.

Maintainability at its best.

See also Re: How to tokenize string by custom dictionary? (+code) for an example with a %hash .

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-19 18:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found