Regular Expressions 101

Sponsors

Library entries

0
javascript

MyRegex

Parse
Submitted by anonymous - 2 days ago
0
javascript

import syntax for regex with grouping

HAYO!
Submitted by CreeJee - 2 days ago
0
javascript

Capture Words

Get each word from a text.
Submitted by anonymous - 4 days ago
0
pcre

Negative search

Seach pattern that doesn't match
Submitted by Gael Langlais - 4 days ago
0
javascript

File extension

Parse file extension.
Submitted by Webmato - 4 days ago
0
python

apdl flst

apdl flst
Submitted by anonymous - 5 days ago
0
python

ipv4 addresses

Valid ip addreses
Submitted by anonymous - 8 days ago
0
javascript

Matches filenames in urls

Filenames in urls
Submitted by anonymous - 9 days ago
0
pcre

inefficient int/float(exponent)

match a single number
Submitted by anonymous - 12 days ago
0
javascript

sql inj

as
Submitted by anonymous - 13 days ago

IP (v4 and v6) check

Vote

0

Regular Expression
javascript

/
(^([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}$|^([0-9a-fA-F]{1,4}:){6}:(?:[0-9a-fA-F]{1,4}){0,1}$|^([0-9a-fA-F]{1,4}:){5}(?:(:[0-9a-fA-F]{1,4}){1,2}|:)$|^([0-9a-fA-F]{1,4}:){4}(?:(:[0-9a-fA-F]{1,4}){1,3}|:)$|^([0-9a-fA-F]{1,4}:){3}(?:(:[0-9a-fA-F]{1,4}){1,4}|:)$|^([0-9a-fA-F]{1,4}:){2}(?:(:[0-9a-fA-F]{1,4}){1,5}|:)$|^[0-9a-fA-F]{1,4}:(?:(:[0-9a-fA-F]{1,4}){1,6}|:)$|^:((:[0-9a-fA-F]{1,4}){1,7}|:)$)|(^(?:(?:25[0-5]|(?:2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(?:25[0-5]|(?:2[0-4]|1{0,1}[0-9]){0,1}[0-9])$)
/
ig

Description

Loading markdown...
Submitted by Emanuele Benedetti - 5 months ago