hi all,
anyone got a nifty bit of regular expression to strip everything but a-z A-Z and out of a string, replacing with
?
thanks in advance,
tony
Hi,
you can do something like e.g.
<?PHP $str = "abz14§$%Z_ff&&"; $str = preg_replace("§[^a-zA-Z_]§","_",$str); echo $str; ?>
Thomas
thanks! That works a treat.
tony 🙂