Use that regex to capture the characters you want, separating them into 2 groups.
\$_(.*?)\['(.*?)'\]
In the substitution field use:
$this->\L$2->$1\('\U$2\')
Explanation:
The first regex will capture the values you want by separating the word post
in group 1 and the word input
in group 2
After this, in the substitution field, they will be used referring to \1
as the first capture group and \2
for the second, resulting in
$this->input->post('INPUT')
It is worth remembering that some regex Flavours do not allow the use of modifiers in the replacement groups, if this is the case, you can change the replacement part to:
$this->input->$1\('$2\')
You can test your regex here
As mentioned by the user who asked in the comments of this
answer, what solved your problem was:
\$this->input->\L$1\('\L$2\')
This should do: $_POST ['INPUT' ]. Just slip the metacharacters with $, [ ...
– Yure Pereira