I'm trying to get an apostrophe (and a dash, as well) to be 
included in a preg_match expression, but I don't know how to escape the 
characters. 

<?php
if (preg_match("^[!a-zA-Z-/\\\'/]^", $_POST['ssname']))  die
("<h5>Numbers and special characters not allowed in 'Surname'<br><br>
 Click 'Back' on your browser to re-enter
information.</h5>");

?>
Any help will be greatly appreciated.

Tia,
Andre

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to