Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
Created·2015-09-26 19:33
Flavor·JavaScript

/
\$([\S]+)\b
/
g
Open regex in editor

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