Regular Expressions 101

Sponsors

Library entries

0
python

JSON string

Can process a JSON string
Submitted by Mass - a year ago
0
python

Domain Matching

Avoids false positives
Submitted by Sly - a year ago
0
python

Validate Phone number

Validate Phone number
Submitted by anonymous - a year ago
0
javascript

regex-symbols

Regex symbols emoji
Submitted by Thaile - a year ago
0
javascript

千分位分隔符

千分位的分隔符
Submitted by anonymous - a year ago
0
golang

Split words in brackets

Split words in brackets
Submitted by ugurakcil - a year ago
0
python

AnotherURLMatcher

Just another URL patron matcher
Submitted by me - a year ago
0
javascript

XML Parsing for IE<9

All my marbles are gone.
Submitted by Odd Stråbø - a year ago

Parse number and street from street address

Vote

0

Regular Expression
javascript

/
^\s*(?:(?:(?<A_Addition_to_address_1>.*?),\s*)?(?:No\.\s*)?(?<A_House_number_1>\p{N}+[a-zA-Z]?(?:\s*[-\/\p{P}]\s*\p{N}+[a-zA-Z]?)*)\s*,?\s*(?<A_Street_name_1>(?:[a-zA-Z]\s*|\p{N}\p{L}{2,}\s\p{L})\S[^,#]*?(?<!\s))\s*(?:(?:[,\/]|(?=#))\s*(?!\s*No\.)(?<A_Addition_to_address_2>(?!\s).*?))?|(?:(?<B_Addition_to_address_1>.*?),\s*(?=.*[,\/]))?(?!\s*No\.)(?<B_Street_name>\S\s*\S(?:[^,#](?!\b\p{N}+\s))*?(?<!\s))\s*[\/,]?\s*(?:\sNo\.)?\s+(?<B_House_number>\p{N}+\s*-?[a-zA-Z]?(?:\s*[-\/\p{P}]?\s*\p{N}+(?:\s*[-a-zA-Z])?)*|[IVXLCDM]+(?!.*\b\p{N}+\b))(?<!\s)\s*(?:(?:[,\/]|(?=#)|\s)\s*(?!\s*No\.)\s*(?<B_Addition_to_address_2>(?!\s).*?))?)\s*$
/
gmu

Description

Loading markdown...
Submitted by Wiktor Stribiżew - a year ago