Regular Expressions 101

Community Patterns

0

Url handling

Python
Simple regex to split url
Submitted by Hangfish - 2 years ago

Parse html tag attributes into key:value pairs

0

Regular Expression
ECMAScript (JavaScript)

/
([a-zA-Z\<\>//]){0}\s(?<name>[a-zA-Z]+)=?("(?<value>[A-Za-z\d\s?%&=;_:.\-\/\\%]*)")?
/
gm

Description

Loading markdown...
Submitted by anonymous - a year ago
(Last modified a year ago)