Are you sure the thing you want to replace the "bar" with will always be properly escaped? Keep in mind that if it would contain a & or a space or one of the several other problematic characters then the result would be invalid?
It would probably be better to use some module to parse the querystring, change the data and build a querystring again. CGI or CGI::Deurl+CGI::Enurl or ...
In reply to Re: REGEX question
by Jenda
in thread REGEX question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |