Regular Expressions 101

Community Patterns

0

Get h1-6 tag

.NET (C#)
(.*?)
Submitted by OlegBel - 10 months ago
0

Bit00:sadf::saf

Python
Bit00:sadf::saf 提取
Submitted by anonymous - 10 months ago
0

Tool Call

Python
f
Submitted by anonymous - 10 months ago
0

carbon

Java 8
test1
Submitted by anonymous - 10 months ago
0

Parcing2

PCRE (PHP <7.3)
aa
Submitted by anonymous - 10 months ago
0

User-Agent

PCRE (PHP <7.3)
Parser
Submitted by sn3kdev - 10 months ago

Parse getopt options from a Bash script

0

Regular Expression
PCRE (PHP <7.3)

/
getopt(?:s|)(?: (?:-[a-zA-Z])*)*(?'name'[$a-zA-Z]+|)\s(?:(?:-o|--options) (?'short'.+) (?:-l|--longoptions|--long) (?'long'(?:[a-zA-Z0-9]|,|:|\$)+) \-\- \"\$@\"|(?:(?:(?:-[a-zA-Z])*|)\s*\"(?'while'(?:[a-zA-Z0-9]|,|:|\$)+)\"))
/
gm

Description

Loading markdown...
Submitted by Spyingwind - 10 months ago