This question already has an answer here:
- preg_match(): Compilation failed: invalid range in character class at offset 4 answers
After upgrading to PHP 7.3
I get this error
What does it mean?
preg_replace(): Compilation failed: invalid range in character class at offset 5 /var/www/...(97) #0 [internal function]: {closure}(2, 'preg_replace():...', '/var/www/dyntes...', 97, Array) #1 /var/www/...(97): preg_replace('/[^\pL-\/,.\d \...', '', 'd
$str = preg_replace('/[^\pL'.$allow_chars.']/', '', $str);