Regular Expressions 101

Sponsors

Library entries

1
javascript

HTML注释

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

phone regex

phone regex
Submitted by antiai - a month ago
1
javascript

提取步骤1

提取步骤1
Submitted by liangchao - a month ago
1
javascript

array path

Extract the array path from a nested path
Submitted by anonymous - 11 days ago
1
javascript

Match HMTL/WXML tag and class

Match HMTL/WXML tag and class
Submitted by ice breaker - 9 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) - 6 months ago