Regular Expressions 101

Library entries

0
pcre2

asd

asdf
Submitted by anonymous - 12 hours ago
0
pcre2

Achternaam

Check on achternaam
Submitted by anonymous - 16 hours ago
0
java

Java RegExMatch Example

This is an example for stackoverflow
Submitted by anonymous - 17 hours ago
0
java

Java RegEx Group Test

Test
Submitted by anonymous - 18 hours ago
0
java

APA Citation v1

Parse APA v7 citations
Submitted by mathias v - 18 hours ago
0
pcre2

Pull Quote regex

Get quote text and author
Submitted by sunilP - a day ago
0
java

catch inner element

working regex for any
Submitted by anonymous - 2 days ago
0
pcre

jiggl

toggl track to jira
Submitted by anonymous - 2 days ago
0
pcre2

RegEx

Examples
Submitted by anonymous - 2 days ago
0
pcre2

EmailValidation

This is an Email validation using RegExp.
Submitted by anonymous - 2 days ago
0
pcre2

Age

Match "I'm ##" or "I am ##"
Submitted by Matt - 2 days ago
0
pcre2

IssuePattern

working pattern for Issue packages
Submitted by anonymous - 3 days ago
1
pcre2

3 letter word finder

finds any 3 letter words in a text
Submitted by anonymous - 3 days ago
0
pcre2

quoted strings regex

matches quoted strings
Submitted by anonymous - 4 days ago

Split address line into street name and house number

Vote

6

Regular Expression
pcre

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