Regular Expressions 101

Sponsors

Library entries

1
pcre

URL Validator (HTTP and HTTPS)

Validate one URL HTTP and HTTPS
Submitted by Joaquim - 7 hours ago
0
pcre

Mysite

Hello
Submitted by anonymous - 7 hours ago
0
python

HTML Link

Get HTML Link
Submitted by anonymous - 20 hours ago
0
pcre

MBI Regex

validates against the MBI format published by CDC
Submitted by i410hlr - 2 days ago
0
pcre

Parse arguments

Parse arguments
Submitted by Ofir Yariv - 2 days ago
0
pcre

User-Agent

Parser
Submitted by sn3kdev - 7 days ago
0
python

Editoria gamecoin

Capturar editorias do site gamecoin
Submitted by anonymous - 8 days ago
0
pcre

Parcing2

aa
Submitted by anonymous - 9 days ago
0
pcre

trim phone number

trim phone number
Submitted by anonymous - 9 days ago
0
golang

log timestamp

extract time stamp from log entry
Submitted by anonymous - 10 days ago

dmidecode parse

Vote

0

Regular Expression
python

"""
(?P<HEADER> (?: (^|\n) ^[^\t\n][^\n]* ){3,}) # header of 3+ none-indented lines | (?P<HANDLE> \n \n ^Handle \s+ (?P<_hex> 0x[0-9a-fA-F]+) \s*, \s* DMI \s+ type \s+ (?P<_dmi> \d+ ) \s*, \s* (?P<_bytes> \d+ ) \s+ bytes \s*? ^(?P<_hname> \w [^\n]*) $ ) | (?P<KEYVAL> ^ \t (?P<_key> \w [^\n\t:]* ) [ ]* : [ ]+ (?P<_val> [^\n\t]+ ) $ ) | (?P<LIST> ^ \t (?P<_lname> \w [^\n\t:]* ) [ ]* : [^\n]* (?P<_lvals> (?: \n \t\t (?P<_lval> \S [^\n]* ) ) * ) $ ) | (?P<_WHOOPS_> \S[^\n]* )
"""
gmx

Description

Loading markdown...
Submitted by Paddy3118 - 3 months ago