Regular Expressions 101

Sponsors

Library entries

2
python

.*(\d+).* Selects last number

no description available
Submitted by anonymous - 6 years ago
2
javascript

Palindrome

Captures a palindrome of 9 digits or less
Submitted by anonymous - 6 years ago
2
javascript

foder add prefix

auto prefix ("/") to folder
Submitted by anonymous - 6 years ago
3
javascript

mm/dd/yyyy Date

no description available
Submitted by jay johnson - 9 years ago
3
python

date time

1/Jul/2013 03:27:12
Submitted by himel - 9 years ago
3
javascript

po box

no description available
Submitted by anonymous - 8 years ago

Split quotes and single words

Vote

5

Regular Expression
javascript

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

Description

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