Regular Expressions 101

Sponsors

Library entries

3
pcre

Get Nth value (3 times)

capture Nth character from string, 3 times
Submitted by K. - 9 years ago
2
pcre

hghdgh

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

YouTube Grabber Cleanup

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

takie

no description available
Submitted by sdfsdfdsf - 9 years ago
-11
python

54

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

Hello world example

no description available
Submitted by Fedir RYKHTIK - 9 years ago
2
pcre

Get Currency SYMBOL/CODE

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

Finds <font> tag

Useful for cleaning old html code from tags
Submitted by anonymous - 9 years ago
-2
pcre

Finds HTML img tags

no description available
Submitted by Matt Solum - 9 years ago
0
pcre

Verify and match e-mail address

no description available
Submitted by Josh K - 9 years ago
-1
pcre

Match the ID on individual Vimeo URLs

no description available
Submitted by Josh K - 9 years ago
-35
pcre

E-mail validation regex

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

.

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

SQL select columns

no description available
Submitted by Phan - 9 years ago
-73
pcre

link

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

regex on paintkits

no description available
Submitted by anonymous - 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 - 10 years ago