Regular Expressions 101

Community Patterns

7

rsyslog test

PCRE (PHP <7.3)
global modifier
Submitted by dtmland - 9 years ago
23

userName

PCRE (PHP <7.3)
1-15 alphanumeric login name
Submitted by gsanchezc - 8 years ago
36

http://

PCRE (PHP <7.3)
no description available
Submitted by Mitus M. - 10 years ago
18

Email validation

PCRE (PHP <7.3)
no description available
Submitted by tutsplus.com - 9 years ago
16

Alphanumeric Regex

PCRE (PHP <7.3)
no description available
Submitted by Deepan - 8 years 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 - 8 months ago