When using this regex /^[\p{L}\p{N}. -/\\]+$/u in php I get an ‘internal error while using the pattern’ error. It want the matched string to be able to contain backslashes.
When using this regex /^[\p{L}\p{N}. -/\\]+$/u in php I get an ‘internal error while
Share
So, knowing that, your current regex compiles to:
which escapes the “]” character and breaks the regex.
Also your delimiter character “/” and “-” should be escaped inside the regex.
Corrected version: