Regular Expressions 101

Sponsors

Library entries

0
javascript

Date Validator

Submitted by anonymous - 2 days ago
0
javascript

111

111
Submitted by Alex - 2 days ago
0
javascript

multicast

.
Submitted by anonymous - 6 days ago
0
javascript

define_1

1
Submitted by anonymous - 10 days ago
0
javascript

price with two decimals

test
Submitted by anonymous - 11 days 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