Regular Expressions 101

Sponsors

Library entries

0
pcre

background:url

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

background:url

no description available
Submitted by Mitus M. - 8 years ago
1
pcre

background:url

no description available
Submitted by Mitus M. - 8 years ago
37
pcre

http://

no description available
Submitted by Mitus M. - 8 years ago
-3
pcre

Date and Time

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

php comment

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

Parse drupal version info from filename

no description available
Submitted by Jason Smith - 8 years ago
-2
pcre

Match v4 IP address

no description available
Submitted by Budiony Damyanov - 8 years ago
-3
pcre

DateTime YYYY-MM-DD hh:mm:ss

no description available
Submitted by Madhan - 8 years ago
4
pcre

Hungarian ANDOK system id

no description available
Submitted by Tana - 8 years ago
6
pcre

ID003 device info

no description available
Submitted by sasjaq - 8 years ago
-2
pcre

[A-Z]+[a-z]{1,2}[0-9]*

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

A masz!

no description available
Submitted by Ja - 8 years ago
-2
pcre

failed attempt

no description available
Submitted by DynV - 8 years ago

Validate Syslog Messages

Vote

2

Regular Expression
pcre

/
<(?'Priority'[0-9]{1,3})>(?'Date'[a-zA-Z]{1,3}\s(?(?=\s)\s|[0-9])[0-9])\s(?'Time'(?:[0-1][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])\s(?'Host'(?(?=\d)(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)+)|\w+)\s(?'Message'.+$)
/

Description

Loading markdown...
Submitted by dislick - 9 years ago