Regular Expressions 101

Library entries

0
pcre

strip host port

removes port number from URL
Submitted by pc - 6 days ago
0
pcre

Proxy Matcher

Validate 1-223.0-255.0-255.0-255:1-65535
Submitted by dev.tntd2k2 - 10 days ago
0
pcre

latlonlatlon

gg
Submitted by anonymous - 10 days ago
1
golang

Home

Dj dus er geen je een je aan je enige eerst een he we er
Submitted by Webmaster - 20 days ago
1
pcre

ENEL T5 Mono

T
Submitted by anonymous - 22 days ago
0
golang

Get digits

Trying to get digits
Submitted by Arthur Silva - a month ago
0
golang

walter1976LastClean

walter1976LastClean
Submitted by anonymous - a month ago
0
pcre

Example 1.1: Pet Name

Example used in slide 39
Submitted by anonymous - a month ago
0
pcre

i++ in bash

asdf
Submitted by anonymous - a month ago

Split address line into street name and house number

Vote

-1

Regular Expression
pcre

/
\A\s* (?: ######################################################################### # Option A: [<Addition to address 1>] <Street name> <House number> # # [<Addition to address 2>] # ######################################################################### (?:(?P<A_Addition_to_address_1>.*?),\s*)? # Addition to address 1 (?:No\.\s*)? (?P<A_Street_name_1>\pN+[a-zA-Z]?(?:\s*[-\/\pP]\s*\pN+[a-zA-Z]?)*) # Street name \s*,?\s* (?P<A_House_number_1>(?:[a-zA-Z]\s*|\pN\pL{2,}\s\pL)\S[^,#]*?(?<!\s)) # House number \s*(?:(?:[,\/]|(?=\#))\s*(?!\s*No\.) (?P<A_Addition_to_address_2>(?!\s).*?))? # Addition to address 2 | ######################################################################### # Option B: [<Addition to address 1>] <House number> <Street name> # # [<Addition to address 2>] # ######################################################################### (?:(?P<B_Addition_to_address_1>.*?),\s*(?=.*[,\/]))? # Addition to address 1 (?!\s*No\.)(?P<B_House_number>\S\s*\S(?:[^,#](?!\b\pN+\s))*?(?<!\s)) # House number \s*[\/,]?\s*(?:\sNo\.)?\s+ (?P<B_Street_name>\pN+\s*-?[a-zA-Z]?(?:\s*[-\/\pP]?\s*\pN+(?:\s*[\-a-zA-Z])?)*|[IVXLCDM]+(?!.*\b\pN+\b))(?<!\s) # Street name \s*(?:(?:[,\/]|(?=\#)|\s)\s*(?!\s*No\.)\s* (?P<B_Addition_to_address_2>(?!\s).*?))? # Addition to address 2 ) \s*\Z
/
x

Description

Loading markdown...
Submitted by Andre Wisplinghoff - 8 years ago