in reply to Re: Re: Replacing text - problem with $1 variable
in thread Replacing text - problem with $1 variable
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
|
|---|