Regular Expressions 101

Sponsors

Library entries

0
javascript

regexGetAccount

(Element CI: )\d{4}
Submitted by raphael - 23 days ago
0
pcre

test1

test1
Submitted by anonymous - 23 days ago
0
javascript

Echo

Usage of named capture group.
Submitted by Abitwhy - 25 days ago
0
javascript

infinitivo verbos idênticos

infinitivo
Submitted by anonymous - a month ago
0
javascript

test

test
Submitted by anonymous - a month ago
0
javascript

test

o
Submitted by k - a month ago
0
javascript

Minecraft Command Getter

A "detector" thing
Submitted by MeowcaTheoRange - a month ago
0
javascript

Xerox Product Page

regex to match a product page url
Submitted by anonymous - a month ago
0
pcre

Network Address

-
Submitted by anonymous - a month ago

CSS font-face rules for embedded webfonts (base64-encoded woff/woff2)

Vote

1

Regular Expression
javascript

/
(?:^|)(?:(?<=(?:font-family[:] ?))['"](.+?)['"]|(?<=(?:font-weight[:])) ?(.+?)|(?<=(?:font-style[:])) ?(.+?)|(?<=src: ?url[(])(?:['"]?data:(.+?)[;,](base64)[,])(.+?)(?:['"]?[)])(?:[\n\s ]?format[(]['"](\S+)['"][)])?)(?:[;][\n])(?:|$)
/
mdg

Description

Loading markdown...
Submitted by Nicholas Berlette (@nberlette) - 2 months ago