How do I change eregi_replace in this code to preg_replace()?
This is the original code:
$title = eregi_replace('</?[a-z][a-z0-9]*[^<>]*>', '', $title );
Do I just need to overwrite eregi_replace with preg_replace or do I need to do more?
I tried this and some variations:
$title = preg_match('#<\/?[a-z][a-z0-9]*[^<>]*>#', '', $title );
When title is submited it turns into 0 and the value is lost.
 
     
    