Regular Expressions 101

Sponsors

Library entries

0
pcre

get arrays from Json

get arrays from Json
Submitted by fawaz - 12 hours ago
0
pcre2

Match CamelCase

Matches PascalCase or CamelCase
Submitted by anonymous - 21 hours ago
0
pcre2

nr_classe

separação de um código numérico simples
Submitted by anonymous - a day ago
0
python

month with year extraction

ready code
Submitted by anonymous - a day ago
0
pcre2

General regular expressions

General
Submitted by Stavros - a day ago
0
pcre2

Database_Data_Type

DatabaseDataType
Submitted by anonymous - 2 days ago
1
pcre

Italian phone number regex

Italian phone number reg
Submitted by Ali Babayev - 2 days ago
0
pcre2

PCRE2 ipv6

Some cases of ipv6 at string begin
Submitted by anonymous - 2 days ago
0
pcre2

LinkedIn School Username

x
Submitted by anonymous - 2 days ago
0
python

Yandex music track regex

Regex for yandex music track
Submitted by anonymous - 2 days ago
0
pcre2

提取src

提取src
Submitted by anonymous - 3 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