Regular Expressions 101

Sponsors

Library entries

1
pcre2

UK style date

dd/mm/yyyy
Submitted by Russ Ferriday, from Docusign templates - 9 months ago
1
pcre2

ew

ee
Submitted by anonymous - 9 months ago
1
pcre2

Email

Regex simples para verificação de email
Submitted by anonymous - 9 months ago
1
pcre2

Backtracking Test

Submitted by farhan - 9 months ago
1
pcre2

trino kill query

trino kill query
Submitted by anonymous - 9 months ago
1
pcre2

trino kill query ID

trino kill query ID
Submitted by anonymous - 9 months ago
1
pcre2

Sutthinart

Private Regex Library
Submitted by Sutthinart Khunvadhana - 9 months ago
1
java

11

11
Submitted by 11 - 8 months 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