Regular Expressions 101

Sponsors

Library entries

1
pcre

saja

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

{if}{endif} matcher

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

why this matches?

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

Substitutin

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

negated special characters

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

bridal quality

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

email

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

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