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.

see doc>


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -