Works for me:
> perl -le "$_ = qq(Fire && ice); s/&&/&/; print" Fire & ice
Maybe you can tell us in more detail how it fails for you. Maybe re-reading perlre, especially about the modifier flags of regular expressions helps, too. For example it might or might not be that your URL contains more than one pair of ampersands, and you want to replace them all.
In reply to Re: regex with special characrer help
by Corion
in thread regex with special characrer help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |