Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
([^\/]+?)([-_0-9]*?)(\.[^\/]*)?\.js
/

Description

Get the script name from an url without extension and version number

Submitted by vrashq - 9 years ago