Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2015-11-27 16:30
Flavor·JavaScript

/
(?:[\n]{0,1})(\w+)(?:\ *=\ *)([^\n]*)(?:[\n]{0,1})
/
gm
Open regex in editor

Description

Example: foo = bar foo=bar foo= bar bar =foo
foo = bar foo=bar foo= bar link = http%3A%2F%2Fgoogle.com jsonEncode = "{"test":1,"test2":2,"test3":"http://google.com"}"

Submitted by acosw