Page 1 of 1

ereg 2 question

Posted: Tue Mar 02, 2004 7:19 am
by pelegk2
1)
how can i check if the first letter is one of
a-z or A-Z

2) how can i check hebrew letters that therevalues are :
chr(224)-chr(250)
?
thnaks in advance
peleg

Posted: Tue Mar 02, 2004 7:23 am
by twigletmac
Please do not start multiple topics on the same question - it would be much better if you put the additional information in the existing thread.

Mac

Posted: Tue Mar 02, 2004 7:24 am
by twigletmac
What do the strings you want to test look like - i.e. echo it out and post the source code.

Mac

Posted: Tue Mar 02, 2004 7:41 am
by pelegk2
what i want ot check is simple is there
an english letter and right after it a hebrew letter
OR
hebrew letter and right after it an english letter
where the char code of the hebrew letters is between :
224 to 250
how do i do that?
thanks in advance]peleg

Posted: Tue Mar 02, 2004 8:12 am
by twigletmac
What does the generated string look like? It's near on impossible to write a regular expression without knowing what the string to compare looks like.

Mac

here is the string

Posted: Tue Mar 02, 2004 8:18 am
by pelegk2
נירוקריל אפור פלטין‏267‏NL‏ דלי ‏18‏ל

Posted: Tue Mar 02, 2004 8:19 am
by pelegk2
here it wuthogu unicode (so i hope)

נירוקריל אפור פלטין‏267‏NL‏ דלי ‏18‏ל

and now...

Posted: Tue Mar 02, 2004 8:20 am
by pelegk2

Code: Select all

נירוקריל אפור פלטין‏267‏NL‏ דלי ‏18‏ל