Regular Expressions 101

Sponsors

Library entries

0
javascript

Matches filenames in urls

Filenames in urls
Submitted by anonymous - 7 hours ago
0
javascript

sql inj

as
Submitted by anonymous - 4 days ago
0
javascript

Currency

Currency
Submitted by jerryd - 7 days ago
0
javascript

date format

relative date format
Submitted by anonymous - 16 days ago
1
javascript

Matching CSS Properties

CSS Properties
Submitted by Luidenka - 20 days ago

Percentage regex

Vote

1

Regular Expression
javascript

/
^(?:(?:\b([0-9]|[1-9][0-9])\b)(?:\.\b([0-9]|[1-9][0-9])\b)?|.\b([0-9]|[1-9][0-9])\b)$
/
gm

Description

Loading markdown...
Submitted by Ankit Patel - 2 months ago