Regular Expressions 101

Sponsors

Library entries

0
javascript

Password

Password regular expression
Submitted by AhbapAldırma - 5 hours ago
0
javascript

Certificate

Certificate
Submitted by anonymous - 11 hours ago
1
python

Parse Data Fields

Parsing example
Submitted by anonymous - a day ago
0
javascript

rwd

rwd
Submitted by anonymous - a day ago
0
javascript

Cbre bookingid

a
Submitted by anonymous - 2 days ago
0
pcre

get arrays from Json

get arrays from Json
Submitted by fawaz - 2 days ago
0
pcre2

Match CamelCase

Matches PascalCase or CamelCase
Submitted by anonymous - 3 days ago
0
pcre2

nr_classe

separação de um código numérico simples
Submitted by anonymous - 3 days ago
0
python

month with year extraction

ready code
Submitted by anonymous - 3 days ago

Svelte: CSS class attribute (Svelte or HTML friendly), class:directive, TailwindCSS classes, and @apply.

Vote

2

Regular Expression
javascript

/
(?:(\bclass)(?:[:]([_a-zA-Z0-9-]+))?\s*[=]?(?:[{}]{0,}['"\s]*\b(.+)?\b["'\s]*[{}]*)?)|(?:\B([@]apply)\s+([_a-zA-Z0-9-\s\:\/]*)[;]?)
/
gm

Description

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