Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
\.(?=[^.]*$)
/
gm

Description

Find last occurrence of . can be replaced with anything .

Submitted by Volgers - 3 years ago