Regular Expressions 101

Sponsors

Library entries

1
pcre

Twitter Hashtags

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

Twitter Hashtags

no description available
Submitted by anonymous - 9 years ago
5
pcre

Repair unquoted HTML attribute values

Usually MSWord HTML exports
Submitted by Ka. - 9 years ago
9
pcre

Validate Base64 single-line string

no description available
Submitted by ka. - 9 years ago
2
pcre

vraagteken

no description available
Submitted by anonymous - 9 years ago
-18
pcre

dd-mm-YYYY HH:mm:ss (year range 1000-2999)

no description available
Submitted by Ka. - 9 years ago
-1
pcre

REMOVE leading and trailing WHITESPACE

no description available
Submitted by ka - 9 years ago
2
pcre

js function test

no description available
Submitted by anonymous - 9 years ago
4
pcre

1st TSV

no description available
Submitted by DynV - 9 years ago
4
pcre

For Auto RTFs

no description available
Submitted by Dan Bloomquist - 9 years ago
1
pcre

jquery regex

no description available
Submitted by Cork - 9 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