Regular Expressions 101

Sponsors

Library entries

0
javascript

MyRegex

Parse
Submitted by anonymous - 5 hours ago
0
javascript

import syntax for regex with grouping

HAYO!
Submitted by CreeJee - 21 hours ago
0
pcre2

Semver regex

Example of regex for semver with pre-releases
Submitted by anonymous - a day ago
0
pcre2

Números reales

Números reales
Submitted by Carlos Osmar - a day ago
0
pcre2

Validación de fecha

Este código validará la fecha
Submitted by Carlos Osmar - 2 days ago
0
pcre2

Doble Espacio

Encuentra texto con toble espacio
Submitted by Carlos Osmar - 2 days ago
0
javascript

Capture Words

Get each word from a text.
Submitted by anonymous - 2 days ago
0
javascript

File extension

Parse file extension.
Submitted by Webmato - 3 days ago
0
pcre2

Invoice nr

regexp search in mongo db by nr
Submitted by Tivadar - 3 days ago
0
python

apdl flst

apdl flst
Submitted by anonymous - 3 days ago

IPv6 CIDR Validator

Vote

1

Regular Expression
javascript

/
(?:(?:(?:[A-F0-9]{1,4}:){6}|(?=(?:[A-F0-9]{0,4}:){0,6}(?:[0-9]{1,3}\.){3}[0-9]{1,3}(?![:.\w]))(([0-9A-F]{1,4}:){0,5}|:)((:[0-9A-F]{1,4}){1,5}:|:)|::(?:[A-F0-9]{1,4}:){5})(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|(?:[A-F0-9]{1,4}:){7}[A-F0-9]{1,4}|(?=(?:[A-F0-9]{0,4}:){0,7}[A-F0-9]{0,4}(?![:.\w]))(([0-9A-F]{1,4}:){1,7}|:)((:[0-9A-F]{1,4}){1,7}|:)|(?:[A-F0-9]{1,4}:){7}:|:(:[A-F0-9]{1,4}){7})(?![:.\w])\/(?:12[0-8]|1[01][0-9]|[1-9]?[0-9])
/
gmi

Description

Loading markdown...
Submitted by anonymous - 4 months ago