Regular Expressions 101

Community Patterns

1...34567...886

Cut Resource/File Path

1

Regular Expression
PCRE2 (PHP >=7.3)

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

Description

🔪 chop, chop, chop!

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