Regular Expressions 101

Sponsors

Library entries

0
python

Emails

test
Submitted by anonymous - 18 days ago
0
pcre2

YouTube extract videoId

Extract Video ID from URL Youtube
Submitted by anonymous - 19 days ago
0
pcre2

Delete empty lines

Delete empty lines
Submitted by anonymous - 19 days ago
0
java

DSA

dsa
Submitted by DSA - 20 days ago
0
pcre2

named query log parse

It's a simple regexp for dns-query.log
Submitted by anonymous - 20 days ago
0
javascript

Pass/Fail

gaming pass fail shortcut
Submitted by Steve Muchow - 20 days ago
0
golang

Golang Get variables In Js

To get
Submitted by anonymous - 24 days ago
0
python

US aircraft registration

US aircraft registration
Submitted by anonymous - 24 days ago
0
pcre2

555

11111
Submitted by anonymous - 24 days ago
0
pcre2

Telefone

Curso de regex
Submitted by anonymous - 24 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