Regular Expressions 101

Community Patterns

Cut Resource/File Path

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?:(.+)?\/|)(.+\.$|.+(?<!\.)(?=\.)|.+)?(?:\.(.+))?$
/
gm

Description

🔪 chop, chop, chop!

Submitted by anonymous - 2 months ago (Last modified a month ago)