Regular Expressions 101

Sponsors

Library entries

11
pcre

Codice fiscale

Check "codice fiscale"
Submitted by Luca - 7 years ago
0
javascript

CSV parser

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

aabc lazy capture

no description available
Submitted by anonymous - 7 years ago
1
javascript

pure url and uri

no description available
Submitted by Thiago Souza - 7 years ago
1
pcre

Cleaning up epub converts

no description available
Submitted by Cory - 7 years ago
1
pcre

HTTP => HTTPS

Force all URLs to HTTPS.
Submitted by WhatIsHeDoing - 7 years ago
1
pcre

Youtube ID

get youtube video ID
Submitted by anonymous - 7 years ago
1
javascript

Floating Point

Tests a floating point number
Submitted by Josh L. Rasmussen - 7 years ago

my apache2 access.log regex

Vote

1

Regular Expression
pcre

/
(?<src_host>\w+\.\w+:\d{2})\s(?<src_ip>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\D{1,6}(?<date_time>[^ ]+)\s(?<GMT_offset>[^ ]+)\]\s"(?<action>(GET|POST|HEAD|TRACE|PUT|DELETE|CONNECT))\s(?<hash_url>[^ ]+)\s(?<protocol>[^\"]+)\"\s(?<code>\d{1,3})\s(?<size>[^ ]+)\s\"(?<referrer>[^ ]+)\"\s\"(?<user_agent>[^ ]+.+)\"
/
g

Description

Loading markdown...
Submitted by marf - 8 years ago