Regular Expressions 101

Sponsors

Library entries

1
javascript

HTML注释

HTML注释
Submitted by anonymous - 6 months ago
1
javascript

phone regex

phone regex
Submitted by antiai - 5 months ago
1
javascript

提取步骤1

提取步骤1
Submitted by liangchao - 5 months ago
1
javascript

array path

Extract the array path from a nested path
Submitted by anonymous - 4 months ago
1
pcre

Polynom

Regex to get polynomial coefficients
Submitted by Balandin Igor - 4 months 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) - 10 months ago