http://qs321.pair.com?node_id=83726


in reply to Common Regex Gotchas

under the section: ``Specifying too much'' you said:

$line =~ /^\w*: \w*\s*\w*, \w*: \w*, \w+: (\d)*, \w*: \w*$";

This ends the regexp with a `"' and starts it with `/`. you could do m"..." or /.../ .

Replies are listed 'Best First'.
Re: Re: Common Regex Gotchas
by Anonymous Monk on Jan 19, 2002 at 09:55 UTC

    your allowed to do that with regexs? I just learned you could use [], (), "", <>, etc., with qq...

    I should read more on Perl.