Regular Expressions 101

Sponsors

Library entries

1
pcre

test

no description available
Submitted by anonymous - 9 years ago
1
pcre

include case

How to include the matched cases in the result?
Submitted by anonymous - 9 years ago
1
pcre

HTML color search

Searches for hex colors in HTML code.
Submitted by Barlean - 9 years ago
1
pcre

tesdsa

dsadsadsadsa
Submitted by dasdasdsa - 9 years ago
1
pcre

Match a date in SQL Server format

no description available
Submitted by anonymous - 9 years ago
1
pcre

1

23123
Submitted by anonymous - 9 years ago
1
pcre

test url

no description available
Submitted by anonymous - 9 years ago
1
pcre

regular expression - with space

no description available
Submitted by anonymous - 9 years ago
1
pcre

quotes and escapes

no description available
Submitted by zgorawski - 9 years ago
1
pcre

asd

asd
Submitted by anonymous - 9 years ago
1
pcre

YOLO

Substitutes "you only live once" with "YOLO".
Submitted by anonymous - 9 years ago
1
pcre

Number invalidator

Including +/-12.3. etc. Excluding MH12, etc.
Submitted by HMK - 9 years ago
1
pcre

number validator

exclude data with space and "-"
Submitted by HMK - 9 years 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