Regular Expressions 101

Sponsors

Library entries

0
pcre2

Semver regex

Example of regex for semver with pre-releases
Submitted by anonymous - 2 hours ago
0
pcre2

Números reales

Números reales
Submitted by Carlos Osmar - 13 hours ago
0
pcre2

Validación de fecha

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

Doble Espacio

Encuentra texto con toble espacio
Submitted by Carlos Osmar - 21 hours ago
0
pcre

Negative search

Seach pattern that doesn't match
Submitted by Gael Langlais - 2 days ago
0
java

date dd.mm.yyyy

Date format dd.mm.yyyy
Submitted by anonymous - 2 days ago
0
pcre2

Invoice nr

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

apdl flst

apdl flst
Submitted by anonymous - 3 days ago
0
pcre2

MySQL DATETIME

MySQL DATETIME
Submitted by anonymous - 3 days ago
0
pcre2

Split Http(s) Response

Split Http(s) Response
Submitted by anonymous - 4 days ago

matches 4 or 6 or 8 digit which might be otp

Vote

0

Regular Expression
pcre2

/
(^|\s)([0-9]{4}|[0-9]{6}|[0-9]{8})(\s|\.|,)[^0-9]
/
gi

Description

Loading markdown...
Submitted by test - 2 months ago