Regular Expressions 101

Sponsors

Library entries

0
javascript

SRD TEST Internal

Test guts to gather Stat and amount
Submitted by anonymous - a day ago
0
pcre2

Storyblok Assets

Match paths for a.storyblok.com
Submitted by anonymous - 2 days ago
0
javascript

Storyblok Img2

Parse img2.storyblok.com URLs
Submitted by anonymous - 2 days ago
0
javascript

Shashi test

Shashi
Submitted by anonymous - 2 days ago
0
pcre2

Init code

Init code
Submitted by anonymous - 2 days ago
0
dotnet

Match IPv4 Valid

expression to capture valid IP
Submitted by anonymous - 2 days ago
1
javascript

Simple CSS selectors

Matches all types of CSS selectors
Submitted by anonymous - 3 days ago
0
python

Get All inst of Characters Name

Standard Script format tv
Submitted by SummerRay - 3 days ago

Quoted String Aware Argument Splitter

Vote

1

Regular Expression
pcre

/
(?xXmi) (?: (?# use non-capture for details in debugging) (?: (?<match> (?# If quoted value) (?<quot_char>(?<!\\)["']) (?# Quoted content) (?: (?: (?# Match as many characters that aren't quotation char) (?# or escape char as possible. ) (?:(?:(?!\k<quot_char>|\\)).+) (?: (?# Match any/all escape chars that do not have the) (?# quotation char following it. ) (?:(?:\\)*(?!\k<quot_char>))? (?# If there is an escape char followed by the quotation) (?# quotation char match them. ) (?:[\\]\k<quot_char>)? )*? ) ) (?<close_quot>\k<quot_char>) | (?# if simple token) (?<basic>[^ \n]+)+ ) ) (?<trail_ws>[ ]+)? )
/
gm

Description

Loading markdown...
Submitted by disk0 <ww.github.com/disco0> - 3 years ago