Regular Expressions 101

Sponsors

Library entries

1
javascript

HTML注释

HTML注释
Submitted by anonymous - 6 months ago
1
javascript

phone regex

phone regex
Submitted by antiai - 5 months ago
1
javascript

提取步骤1

提取步骤1
Submitted by liangchao - 5 months ago
1
javascript

array path

Extract the array path from a nested path
Submitted by anonymous - 4 months ago
1
pcre

Polynom

Regex to get polynomial coefficients
Submitted by Balandin Igor - 4 months ago

Currency with dollar sign, two decimals, negative allowed, starting with period ok

Vote

2

Regular Expression
javascript

/
^(?:[$](\s{0,1})|)[+-]?(\d{1,3},?(\d{3},?)*\d{3}(\.\d{0,2})?|\d{1,3}(\.\d{0,2})?|\.\d{1,2}?)$
/
gm

Description

Loading markdown...
Submitted by Natalia Zolotareva - 8 months ago