Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^[^#?]+\.([a-zA-Z0-9]+)(?:[?#].*)?$
/

Description

Extract file extention from URL

Submitted by anonymous - 9 years ago