Any ideas why this preg_match works up to PHP7.2 but fails with 7.3+ ?
$word = 'umweltfreundilch'; //real life example :/
preg_match('/^(?U)(.*(?:[aeiouyäöü])(?:[^aeiouyäöü]))(?X)(.*)$/u', $word, $matches);
var_dump($matches);
Warning: preg_match(): Compilation failed: unrecognized character after (? or (?-
PHP 7.2 and below output:
array(3) {
[0]=>
string(16) "umweltfreundilch"
[1]=>
string(2) "um"
[2]=>
string(14) "weltfreundilch"
}
RegEx seems to be ok, doesn't it?
https://regex101.com/r/LGdhaM/1