Im trying to get this thing working where i accept all unicode letters, so can cover languages like urdu and other special letters from around the world.
Tried this :
/^[\p{L}\p{Zs}\p{N}]+$/uix
But it gets me no where what the heck am i doing wrong? even tried some of the regex tools and just cant get this to work in any way.
Got it working i found out it was my htmlentities messing with the result but is it safe to use $_POST with preg_match ?
!preg_match("/^[\\p{L}\\p{Zs}\\p{N}\\p{M}]+$/u", $_POST['firstname'])