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é
  • 384
  • 2
  • 6
  • 22
Toni Mhb
  • 53
  • 6

1 Answers1

0

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

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

?

SL5net
  • 2,282
  • 4
  • 28
  • 44