Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
ECMAScript (JavaScript)

/
\$([\S]+)\b
/
g

Description

Search a string for PHP-like variables starting with $, containing an unlimited number of non-whitespace characters and ending with a word boundary of any kind

Submitted by Pascal Vorwerk - 9 years ago