Regular Expressions 101

Sponsors

Library entries

1
python

Days Hours Minutes Seconds

no description available
Submitted by Clay Burns - 7 years ago
1
pcre

(\d\d?) ([A-Z][a-z][a-z]) (\d{4});

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

URL that allows IP

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

Registry key path

Get the Last entry for the registry key.
Submitted by Rhino - 7 years ago
2
pcre

test

test
Submitted by anonymous - 7 years ago
1
pcre

TEST 2

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

TEST 1

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

teste

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

reddit username

no description available
Submitted by l3d00m - 7 years ago
1
python

wso list

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

Phone number

no description available
Submitted by Vaseker - 7 years ago
0
javascript

lookahead not match 'aa'

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

Simple global regex

Regex for finding tempratures in a text
Submitted by anonymous - 7 years 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