Regular Expressions 101

Sponsors

Library entries

1
python

surnames

italian uppercase surnames
Submitted by anonymous - a month ago
0
python

AyL

Example of re and substitutions with csv file
Submitted by Ing Daniel Pérez - a month ago
0
javascript

Command Usage

a
Submitted by 12944qwerty - a month ago
0
python

number two decimal digit

.
Submitted by anonymous - a month ago
0
javascript

PACCAR VIN trimmer

trin vin from a scanned qr
Submitted by anonymous - a month ago
1
golang

1

11
Submitted by anonymous - a month ago
0
javascript

Simple Macro Extraction from Ad Tag

Submitted by AM - a month ago

RFC 4646

Vote

0

Regular Expression
javascript

/
(?<LanguageTag>(?<langtag>(?<language>(?:[a-z]{2,3}(?<extlang>(?:\-[a-z]{3}){0,3}))|[a-z]{4}|(?<subtag>[a-z]{5,8}))(?:\-(?<script>[a-z]{4}))?(?:\-(?<region>[a-z]{2}|[0-9]{3}))?(?:\-(?<variant>[0-9a-z]{5,8}|[0-9][0-9a-z]{3}))*(?:\-(?<extension>(?<singleton>[a-wy-z0-9])(?:\-[0-9a-z]{2,8})+))*)|(?<privateuse>[xX](?:\-[0-9a-z]{1,8})+)|(?<grandfathered>[a-z]{1,3}(?:\-[0-9a-z]{2,8}){1,2}))
/
gmi

Description

Loading markdown...
Submitted by reThink23 - 3 months ago