Regular Expressions 101

Community Patterns

106

trim

ECMAScript (JavaScript)
trim string
Submitted by fp - 10 years ago

Find last word and space of string

0

Regular Expression
ECMAScript (JavaScript)

/
(\w*$)|(\w*\s*$)
/

Description

Loading markdown...
Submitted by anonymous - 8 months ago
(Last modified 8 months ago)