Subject: string function
Posted By: Moharo Post Date: 1/30/2004 12:52:29 PM
how can i find out whether a character within a word or phrase is a letter or a punctuation character like dot or comma or colon or semicolon (.,:;><) etc ?

the genuine genius
Reply By: nikolai Reply Date: 1/30/2004 5:25:19 PM
Use a regular expression match.
  http://www.php.net/pcre
  http://www.php.net/preg_match

I would suggest searching for any character that's NOT an alphanumeric character.


Take care,

Nik
http://www.bigaction.org/

Go to topic 9182

Return to index page 958
Return to index page 957
Return to index page 956
Return to index page 955
Return to index page 954
Return to index page 953
Return to index page 952
Return to index page 951
Return to index page 950
Return to index page 949