Regular Expressions 101

Sponsors

Library entries

0
javascript

Mez regex #3

This is the #3 regex used in Mez
Submitted by anonymous - 6 days ago
0
javascript

Mez regex #1

This is the #1 regex used in Mez
Submitted by anonymous - 6 days ago
0
pcre2

find between 2 strings

find between 2 strings
Submitted by anonymous - 7 days ago
0
pcre

find between

find between
Submitted by anonymous - 7 days ago
0
python

Url handling

Simple regex to split url
Submitted by Hangfish - 7 days ago
0
pcre2

Jerem

To match specific name based on season code
Submitted by anonymous - 8 days ago
1
javascript

Match HMTL/WXML tag and class

Match HMTL/WXML tag and class
Submitted by ice breaker - 9 days ago
0
pcre2

.csv data conversion for a test case

from "['a']" to "[""a""]"
Submitted by anonymous - 10 days ago
0
javascript

UA phone number

check ua phone number
Submitted by anonymous - 11 days ago
0
pcre2

track OM cash out

cash out tracker
Submitted by anonymous - 11 days ago

HSL(A) Color Matching

Vote

3

Regular Expression
pcre

/
(?(DEFINE) (?<decimal>(?(int)([.][0-9]+)?|[.][0-9]+)) (?<percentage> (100| (?<int>([0-9]|[1-9][0-9]))? # Have integer be optional (0-100 only) (?P>decimal) # Have decimal required when an integer is not included ) (?<symbol>%) ) (?<hue> (?<int>36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])? # Have integer be optional (?P>decimal) # Have decimal required when an integer is not included (?<symbol>\s*deg\s*)? ) (?<alpha> (?(alpha),\s*( 1[.]0| (?<int>0)? # Have integer be optional (?P>decimal) # Have decimal required when integer is not incldue )\s*) ) (?<hsl>\s*(?P>hue)\s*,\s*(?P>percentage)\s*,\s*(?P>percentage)\s*) ) hsl(?<alpha>a)?\((?P>hsl)(?P>alpha)\)
/
gxJi

Description

Loading markdown...
Submitted by anonymous - 3 years ago