Regular Expressions 101

Community Patterns

5

HTML img

ECMAScript (JavaScript)
Grabs all HTML tags
Submitted by Pirate11 - 8 years ago

Split quotes and single words

6

Regular Expression
ECMAScript (JavaScript)

/
"([^"\\]*(?:\\.[^"\\]*)*)"|\w+|'([^'\\]*(?:\\.[^'\\]*)*)'
/
g

Description

Loading markdown...
Submitted by LoveIsGrief - 10 years ago