php - regex start and close characters (preg_replace) -
i have both googled , searched site before posting here, can't seem understand start , close regex characters within following code segment.
$url = preg_replace('|[^...]|i', '', $url) i familiar '/.../i', '|...|i' mean ? in advance.
ps - first question on forum, please forgiving.
'|...|i' same '/.../i', difference , don't have escape / inside '|...|i', have escape |.
a delimiter can non-alphanumeric, non-backslash, non-whitespace character.
Comments
Post a Comment