Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: some regex help

by Roy Johnson (Monsignor)
on Apr 05, 2004 at 21:47 UTC ( #342770=note: print w/replies, xml ) Need Help??

in reply to some regex help

I'm not sure how to go about dynamically creating variables like this
The recommended alternative is to use a hash, where ABC is a key, rather than a variable name..

Your regexen are fine. For the last example, you should use \w* instead of .*, as the latter will capture whitespace. If your expression should accept embedded whitespace (or other non-\w chars), it gets a little trickier.

The PerlMonk tr/// Advocate

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2022-01-19 10:42 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (55 votes). Check out past polls.