Regular Expressions 101

Community Patterns

0

Url handling

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

Shell multiline parser

0

Regular Expression
ECMAScript (JavaScript)

/
(´┐ózinit)(?<remaining_command>(?<simple_remaining>.+$(?<![\\'"]))|(?<continuation_line>.+(?<continuation>(?<slash_continuation>[\\]\n)|(?<quoted_continuation>["]\n[\s\S]*(?<!(?:[\\]{2})*[^\\])["])))*.+)
/
gm

Description

Loading markdown...
Submitted by disco0 - 2 years ago