What should be the RegEx if I want to find the text between the phrases " IF (NEW." and " !"?
- by Parth
What should be the RegEx if I want to find the text between the phrases " IF (NEW." and " !"?
Likewise I am thinking of the pattern as $pattern = '/(?<= IF (NEW.)[^ !]+/';
I am matching it as
$input = $row4['ACTION_STATEMENT'];
preg_match_all($pattern, $input, $captures);
What if I want $captures as an array, in which all values will be stored which will match with above pattern being in between of this pattern?