Regular Expressions 101

Sponsors

Library entries

0
python

Url handling

Simple regex to split url
Submitted by Hangfish - 5 days ago
0
python

Postcode (UK)

Detects UK postcodes (minimal edge cases)
Submitted by anonymous - 16 days ago
0
python

PO Number

Detects specific prefixes followed by number series
Submitted by anonymous - 16 days ago
0
python

Credit Note

Detects specific word in a sentence
Submitted by anonymous - 16 days ago
0
python

dice thing

Stuff for a dnd thing
Submitted by Cata - 16 days ago
0
python

完形填空

完形填空
Submitted by anonymous - 18 days ago
0
python

恩更

非法发
Submitted by anonymous - 18 days ago
0
python

CPF|CNPJ

Match Brazilian documents
Submitted by Bacco - 18 days ago
0
python

SUBTOTAL

SUBTOTAL 15.88
Submitted by KRISHNA - 20 days ago
0
python

DEPIT INFO

K
Submitted by K - 20 days ago
0
python

Regex

wifiwnsml
Submitted by krishabj - 20 days ago
0
python

Log Analysis Google

final project
Submitted by anonymous - a month ago
0
python

find const string in code for xml/java

.
Submitted by anonymous - a month ago
0
python

matlab代码

matlab代码
Submitted by java - a month ago
0
python

LinkTree

just to find linktree links in poirot
Submitted by anonymous - a month ago

LC-2200 parser

Vote

1

Regular Expression
pcre

/
^[ \t]*(?:(?<label>[a-zA-Z0-9_]+):[ \t]*)? (?: (?<op>[a-zA-Z0-9_\.]+) (?: (?: (?: [ \t]* (?: (?<h0>[-+]?[0oO]?[xX][a-fA-F0-9]{1,8}) | (?<o0>[-+]?[0oO][0-7]+) | (?<b0>[-+]?[0oO]?[bB][01]{1,32}) | (?<l0>[a-zA-Z0-9_]+) | (?<d0>[-+]?\#?\d+) ) [ \t]* (?:\((?<r0b>\$[a-zA-Z0-9_]{2,5})\))?[ \t]* ) | [ \t]*(?<r0>\$[a-zA-Z0-9_]{2,5})[ \t]* (?: (?: ,[ \t]* (?: (?<d1>[-+]?\#?\d+) | (?<h1>[-+]?[0oO]?[xX][a-fA-F0-9]{1,8}) | (?<o1>[-+]?[0oO][0-7]+) | (?<b1>[-+]?[0oO]?[bB][01]{1,32}) | (?<l1>[a-zA-Z0-9_]+) ) [ \t]* (?:\((?<r1b>\$[a-zA-Z0-9_]{2,5})\))?[ \t]* ) | ,[ \t]*(?<r1>\$[a-zA-Z0-9_]{2,5})[ \t]* (?: (?: ,[ \t]* (?: (?<d2>[-+]?\#?\d+) | (?<h2>[-+]?[0oO]?[xX][a-fA-F0-9]{1,8}) | (?<o2>[-+]?[0oO][0-7]+) | (?<b2>[-+]?[0oO]?[bB][01]{1,32}) | (?<l2>[a-zA-Z0-9_]+) ) [ \t]* (?:\((?<r2b>\$[a-zA-Z0-9_]{2,5})\))?[ \t]* ) | ,[ \t]*(?<r2>\$[a-zA-Z0-9_]{2,5})[ \t]* )? )? )? )? )? (?<pseudo_op> \. (?<name>[a-zA-Z]+) [ \t]* (?<arg> (?<hp0>[-+]?[0oO]?[xX][a-fA-F0-9]{1,8}) | (?<bp0>[-+]?[0oO]?[bB][01]{1,32}) | (?<op0>[-+]?[0oO][0-7]+) | (?<dp0>[-+]?\#?\d+) | (?<lp0>[a-zA-Z0-9_]+) ) [ \t]* )? (?:[ \t]*(?<comment>[!;].*)?) $
/
gxm

Description

Loading markdown...
Submitted by Chris Ottersen - 7 years ago