Welcome to WebmasterWorld Guest from 220.127.116.11
PHP Warning: ereg_replace(): REG_EPAREN
$string = "widgets widgets ___ widgets (large widgets) widgets widgets";
$newstring = ereg_replace("___","",$string);
What is the correct way to escape a parenthesis?
there are 11 characters with special meanings: the opening square bracket [, the backslash \, the caret ^, the dollar sign $, the period or dot ., the vertical bar or pipe symbol ¦, the question mark?, the asterisk or star *, the plus sign +, the opening round bracket ( and the closing round bracket ). These special characters are often called "metacharacters".
If you want to use any of these characters as a literal in a regex, you need to escape them with a backslash.
This comes from a well known domain dedicated to
hmmmm see what I mean :)