Can anybody help me with following
I have several variables like
$customer = $this->input->post('UserId_2');
and I need to replace with
$customer = $this->input->post('UserId_2', TRUE);
I am using the following RegEx to search which matches all the occurrences
\$this->input->post\(\'\w*\'\);
But I am unable to replace. I have tried $1 but it doesn't help
You don't have a capture group so $1
is empty. Use:
\$this->input->post\('(\w*)'\);
with
$this->input->post('$1', TRUE);