yitzle wrote:

I know this isn't the best way to parse it, but I need to check the $ENV{'QUERY_STRING} for some values.

I originally had =~ /^limit=([0-9]{1,3})$/ which worked. But I tried to replace the ^ with [&^] and the $ with [&$] to allow the string to be part of a longer string attached with an & on either side.

The point is, the [&^] doesn't seem match either ^ or &, like I want
to. Why is this? How do I match ^ or &? (I really should just split
on & and grep or whatever, but...)

After all the discussion, I suggest that all you really need is:

/\blimit=([0-9]+)\b/

Rob



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to