Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: some regex help

by emilford (Friar)
on Apr 05, 2004 at 21:57 UTC ( #342772=note: print w/replies, xml ) Need Help??


in reply to Re: some regex help
in thread some regex help

Yes, that makes sense. I'll use a hash to store the dynamic variables. Duh, I should have thought of that. :)

The % sign in my second regex was meant to be a ^ sign. Typo.

I think I need to rethink the $options part. Say the $options variable was set to "A|B|C". In the configuration file that I need to parse, the line could be "Foo = A" or "Bar = A|B" to signify it either A or B. I don't think what I have will give me the desired results.

I figured using (.*) would be bad. You know, because of the whole greedy thing....:-P. Thanks.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2022-01-28 03:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (72 votes). Check out past polls.

    Notices?