![]() |
|
|
+ Search |
![]()
|
Aug 17th, 2002 15:28
Nate Weibley,
See if this is what you want...
<?php
$string='This is my cRa\'z^3 $tr|ng';
$string=eregi_replace("[^a-z0-9_\-\[\]]*",'',$string);
echo $string;
?>
That will output:
ThisismycRazY3trng
If you want to keep spaces, add one before a-z.
Hope that helps,
--Nate
iamfast@tampabay.rr.com