![]() Topic awaiting preservation: PHP Regex help please!!! (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Australia |
![]() Arrgg this is driving me mad... |
Bipolar (III) Inmate From: |
![]() Try this: code: preg_match("/^[A-Za-z\']+$/", $string);
|
Paranoid (IV) Inmate From: Australia |
![]() 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! |