1

I need to include croatian letters like : č ć ž š đ in preg _match. How can i do it ?

I already tried

!preg_match("/^[a-zšđčćžA-Z0-9\. \-]*$/", $home)

but its not working . I need to escape these characters. Any ideas ?

Thanks,Toni.

Francis Laclé
  • 374
  • 2
  • 5
  • 21
Toni Mhb
  • 53
  • 6

1 Answers1

0

may it helps you to exclude (not include) letters?

preg_match("/^[^WAT]*$/", $home)

?

SL5net
  • 1,843
  • 3
  • 19
  • 34