Re: [PHP] substr_count() and regex

2002-03-17 Thread Bas Jobsen
Op zondag 17 maart 2002 20:15, schreef Gil Disatnik: > Hello there, > I am trying to use substr_count() to count the number of Hebrew characters > in a string, > I tried substr_count($test, "/[à-ú]/"), but it returns 0 as if it can't > match the regex I have inserted there, I hoped it will work

[PHP] substr_count() and regex

2002-03-17 Thread Gil Disatnik
Hello there, I am trying to use substr_count() to count the number of Hebrew characters in a string, I tried substr_count($test, "/[à-ú]/"), but it returns 0 as if it can't match the regex I have inserted there, I hoped it will work the same as preg_match() that works great (preg_match("/[à-ú]/