Assuming there's no nested square brackets inside your argument list to $_GET[] and $_POST[], that will work.perl -pi -e 's/\$_(GET|POST)\[([^\]]*)]/lc($1) . "($2)"/egm;' test.php
In reply to Re: Re: Re: Replacing text - problem with $1 variable
by Hutta
in thread Replacing text - problem with $1 variable
by kr00z3r
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |