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.
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.
|
---|
In Section
Seekers of Perl Wisdom