Regular Expressions 101

Sponsors

Library entries

0
pcre2

protocol ip port

no description available
Submitted by 0bel1sk - 2 years ago
0
pcre2

HITs data

no description available
Submitted by xidios - 2 years ago
0
pcre2

HITs mail task

no description available
Submitted by xidios - 2 years ago
0
pcre2

vscode multiline

no description available
Submitted by anonymous - 2 years ago
0
pcre2

Extract cdn images intercom

no description available
Submitted by anonymous - 2 years ago
0
pcre

Acestream ID

no description available
Submitted by nacholopez - 2 years ago
0
pcre2

splitter

no description available
Submitted by anonymous - 2 years ago
0
pcre2

splitter

no description available
Submitted by anonymous - 2 years ago
0
pcre2

Email

no description available
Submitted by anonymous - 2 years ago
0
pcre2

right operations +-*\

no description available
Submitted by xidios - 2 years ago
0
pcre2

Number from Statments

no description available
Submitted by anonymous - 2 years ago
0
pcre2

fcas4

no description available
Submitted by anonymous - 2 years ago
0
pcre2

Date

no description available
Submitted by anonymous - 2 years ago
0
pcre2

Rs Extraction

no description available
Submitted by anonymous - 2 years ago
0
pcre2

mail mil reg

no description available
Submitted by anonymous - 2 years ago

match specific functions

Vote

0

Regular Expression
pcre

~
(?(DEFINE) # Start of definitions (?P<str_double_quotes> (?<!\\) # Not escaped " # Match a double quote (?: # Non-capturing group [^\\] # Match anything not a backslash | # Or \\. # Match a backslash and a single character (ie: an escaped character) )*? # Repeat the non-capturing group zero or more times, ungreedy/lazy " # Match the ending double quote ) (?P<str_single_quotes> (?<!\\) # Not escaped ' # Match a single quote (?: # Non-capturing group [^\\] # Match anything not a backslash | # Or \\. # Match a backslash and a single character (ie: an escaped character) )*? # Repeat the non-capturing group zero or more times, ungreedy/lazy ' # Match the ending single quote ) (?P<brackets> \( # Match an opening bracket (?: # A non capturing group (?&str_double_quotes) # Recurse/use the str_double_quotes pattern | # Or (?&str_single_quotes) # Recurse/use the str_single_quotes pattern | # Or [^()] # Anything not a bracket | # Or (?&brackets) # Recurse the bracket pattern )* \) ) ) # End of definitions # Let's start matching for real now: _n? # Match _ or _n \s* # Optional white spaces (?P<results>(?&brackets)) # Recurse/use the brackets pattern and put it in the results group
~
sxg

Description

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