Regular Expressions 101

Community Patterns

Community Library Entry

-2

Regular Expression
PCRE (PHP <7.3)

~
[^/.]+/(?0)?\.\./
~
g

Description

Remove /../ recursively from urls

Submitted by santiagoarizti@gmail.com - 9 years ago