How to create regex (pattern) in PHP to match the exact format of this string:
MORE 8
Where 8 is an id.
As an example, I have the following code:
$id = 8;
$keyword = MORE;
$string = $keyword." ".$id;
Now, I need a regex pattern to match my $string variable.
$regex_pattern = "/MORE ([0-9]*)/";