|  Topic awaiting preservation: PHP Regex help please!!! (Page 1 of 1)  | |
|---|---|
| Paranoid (IV) Inmate From: Australia |  posted 07-29-2006 03:55 Arrgg this is driving me mad... | 
| Bipolar (III) Inmate From:  |  posted 07-29-2006 04:06 Try this: code: preg_match("/^[A-Za-z\']+$/", $string);
 | 
| Paranoid (IV) Inmate From: Australia |  posted 07-29-2006 04:28 Thanks looks good.. funnily enough the problem was elsewhere though - i was of course escaping the input for the sql string before verifying the input. So instead of matching ' it was trying to match \' . Oops! |