Regular Expressions 101

Sponsors

Library entries

0
python

regex for phone (US & CAN)

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

CSCE project (normal task regex)

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

CSCE project (regex for bonus portion)

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

Teoria 1

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

^\[([\w\s\d]+)\]\((https?:\/\/[\w\d.\/?=#]+)\)$

Markdown link
Submitted by anonymous - 2 years ago
-1
javascript

Any combo of space and dash

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

Alphanumeric Employee ID

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

simple wild card

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

DIESEL Floating point numbers

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

Floating point numbers

no description available
Submitted by anonymous - 2 years ago
-1
python

IP Address

no description available
Submitted by anonymous - 2 years ago

SEBI Firewall Parser - 1

Vote

0

Regular Expression
pcre

/
>(?P<Time>.*)\s+(?P<DeviceIPAddress>\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})\s+date=(?P<Date>.*)\s+time=(?:\d+\W+\d+\W+\d+)\s+devname=(?<DeviceName>.*)\s+devid=(?P<DeviceID>\w+)\s+logid=(?:\d+)\s+type=(?P<LogType>\w+)\s+subtype=(?P<SubType>\w+)\s+level=(?P<Status>\w+)\s+vd=(?P<User>\w+)\s+logdesc=[\W+](?P<Message>.*)[\W+]\s+session_id=(?P<Session_ID>\w+)\s+policyid=(?:\d+)\s+srcip=(?P<SourceIP>\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})\s+srcport=(?P<SourcePort>\d+)\s+dstip=(?P<DestinationIP>\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})\s+dstport=(?P<DestinationPort>\d+)\s+action=(?P<Action>\w+)\s+alert=(?:\d+)\s+desc=[\W+](?P<Description>.*)[\W+]\s+msg=[\W+](?P<msg>.*)[\W+]
/
gm

Description

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