Regular Expressions 101

Sponsors

Library entries

0
java

lat cyr letters

only lat and cyr letters
Submitted by anonymous - 6 days ago
0
java

LinkedIn Profile Url

LinkedIn Profile Url
Submitted by Morons - 8 days ago
0
java

phone number matcher

phone number matcher
Submitted by anonymous - 20 days ago
0
golang

匹配邮箱

[A-Za-z0-9]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+) `
Submitted by Lintao - a month ago
0
java

CDATA Matcher

Matches CDATA sections while disallowing nesting
Submitted by anonymous - a month ago
0
golang

Golang Docker matcher

Used by me for docker-retagger
Submitted by Roman Minebaev - 2 months ago
0
java

#结尾的电话匹配

#结尾的电话匹配
Submitted by anonymous - 2 months ago
0
golang

Jira issue number

Matches and catches Jira issue number
Submitted by anonymous - 2 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