Regular Expressions 101

Sponsors

Library entries

103
javascript

trim

trim string
Submitted by fp - 9 years ago

Google like regex

Vote

31

Regular Expression
javascript

/
([+-]?(?:'.+?'|".+?"|[^+\- ]{1}[^ ]*))
/
g

Description

Loading markdown...
Submitted by mettjus - 8 years ago