Regular Expressions 101

Sponsors

Library entries

0
pcre

Search href in <a> tag (internal links)

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

date format slicing

lookahead
Submitted by Kmna - 7 years ago
0
pcre

Number

no description available
Submitted by Jaromir Muller - 7 years ago
0
pcre

Apache log regex

Regex pattern for Apache log
Submitted by Sujan Thapa - 7 years ago
0
pcre

Testing (delete)

Testing (delete)
Submitted by Testing (delete) - 7 years ago
0
pcre

Regx5

no description available
Submitted by anonymous - 7 years ago
0
javascript

Email

validate email address
Submitted by anonymous - 7 years ago
0
pcre

url segments seperation

seperates url path and query
Submitted by r.abdollahi - 7 years ago

fortigate syslog

Vote

0

Regular Expression
pcre

/
^(?<time>[^ ]* [^ ]* [^ ]*) (?<host>[^ ]*) date=(?<forti_date>[^ ]*) time=(?<forti_time>[^ ]*) devname=(?<dev_name>[^ ]*) device_id=(?<dev_id>[^ ]*) log_id=(?<log_id>[^ ]*) type=(?<type>[^ ]*) subtype=(?<subtype>[^ ]*) pri=(?<pri>[^ ]*) vd=(?<vd>[^ ]*) src=(?<src>[^ ]*) src_port=(?<src_port>[^ ]*) src_int="(?<src_int>[^ ]*)" dst=(?<dst>[^ ]*) dst_port=(?<dst_port>[^ ]*) dst_int="(?<dst_int>[^ ]*)" SN=(?<SN>[^ ]*) status=(?<status>[^ ]*) policyid=(?<policy_id>[^ ]*) dst_country="(?<dst_country>[^ ]*)" src_country="(?<src_country>[^ ]*)" service=(?<service>[^ ]*) proto=(?<proto>[^ ]*) duration=(?<duration>[^ ]*) sent=(?<sent>[^ ]*) rcvd=(?<rcvd>[^ ]*)$
/

Description

Loading markdown...
Submitted by ViKing - 7 years ago