Regular Expressions 101

Sponsors

Library entries

0
pcre2

Match CamelCase

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

nr_classe

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

month with year extraction

ready code
Submitted by anonymous - 20 hours ago
0
pcre2

General regular expressions

General
Submitted by Stavros - 21 hours ago
0
pcre2

Database_Data_Type

DatabaseDataType
Submitted by anonymous - a day ago
1
pcre

Italian phone number regex

Italian phone number reg
Submitted by Ali Babayev - a day 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 - 2 days ago
0
java

Hitech RTOZONE

Checks the registration number's validity
Submitted by Sid - 3 days ago

ip-v6

Vote

0

Regular Expression
javascript

/
^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$
/
i

Description

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