Regular Expressions 101

Sponsors

Library entries

1
javascript

phone regex

phone regex
Submitted by antiai - a month ago
0
python

#value # value

account for comments
Submitted by anonymous - a month ago
0
python

Phone number regex

REGEX to test various phone numbers
Submitted by Drew Recker - a month ago
0
golang

find email addresses

find email addresses
Submitted by anon - a month ago
0
javascript

Website Regex

Finds all website URLs
Submitted by JohnnyJTH - a month ago
0
python

71871164

Stack overflow example
Submitted by anonymous - a month ago
0
python

pens

testing
Submitted by anonymous - a month ago
0
javascript

QueryString and Datasource

asdasd
Submitted by anonymous - a month ago
0
javascript

Positive Integer

(/^\d{0,}(([.]{1})?\d?){0,}$/gi
Submitted by Wasiu Ramoni - a month ago
0
javascript

div change to button

div change to button
Submitted by mtac - a month ago
0
javascript

Match markdown link

Regex match markdown link
Submitted by anonymous - a month ago
0
javascript

Match Internal Links

Detect internal links in page
Submitted by anonymous - a month ago
0
javascript

分组

显示分组
Submitted by Jason - 2 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) - 6 months ago