Regular Expressions 101

Sponsors

Library entries

1
python

regex to match absolute urls

no description available
Submitted by maq - 7 years ago
1
javascript

magnet

Extract magnet links
Submitted by Peng - 7 years ago
1
javascript

1

no description available
Submitted by anonymous - 7 years ago
1
python

message

no description available
Submitted by anonymous - 7 years ago
1
python

signal

no description available
Submitted by anonymous - 7 years ago
1
javascript

date Format

no description available
Submitted by anonymous - 7 years ago
1
python

Regex - global match, multiline

no description available
Submitted by MetalMuzu - 7 years ago
1
python

java

no description available
Submitted by anonymous - 7 years ago
1
javascript

get rid of hash tag

no description available
Submitted by LittlePiggy - 7 years ago
1
javascript

Domain Regex (line start)

no description available
Submitted by anonymous - 7 years ago
1
python

PECL: find stable versions

no description available
Submitted by anonymous - 7 years ago

Units RegExp

Vote

1

Regular Expression
javascript

/
(?:(?:(\d*(?:\d*(?:.?,?)*?)*?)(.?|,?)(\d*)) ?(k|m|g|c|d|p)?(mi|bbl.|cu.|doz.|fl.? ?oz|F|ft|gal|gr|in|k|lb|mph|n.m|oz|pt|qt|sq|rpm|tablespoon|teaspoon|tbsp|tsp|td|l |m|m|b|g|kl|l |C |g|m|mt|w)(?:\/?(h|s|m)?).? *?(?:\^ *?(\d+))?)(?= |\n|\r)
/
gi

Description

Loading markdown...
Submitted by Javier Matusevich - 7 years ago