I have the following regex:
$regex = '/(?:(?:\b(?:pp|[Ww]ars|[\.!?)]?\s*f|vs)[\.!?)]\s))\Z/mu';
It matches with:
$string = 'Wars! ';
But I want it to match with the following scenario:
$string = 'Wars!) ';
I have added the closing bracket there but obviously I'm doing something wrong.