Regular Expressions 101

Sponsors

Library entries

0
pcre2

regex-input-number

regex-input-number
Submitted by me - 4 hours ago
0
pcre2

find abc in string

first test
Submitted by anonymous - 8 hours ago
0
pcre2

simulate to event

simulate to event
Submitted by anonymous - 10 hours ago
0
pcre2

simulate to event

simulate to event
Submitted by anonymous - 10 hours ago
0
pcre2

simulate to event

simulate to event
Submitted by anonymous - 10 hours ago
0
pcre2

Remove Hatena blog keyword

Remove Hatena blog keyword
Submitted by anonymous - 12 hours ago
0
pcre2

嵌入条件

嵌入条件
Submitted by anonymous - a day ago
0
pcre2

Ipv4 validation

regex for ip validation
Submitted by Amper - 2 days ago
0
pcre2

Split The Phone Numbers

Split The Phone Numbers
Submitted by anonymous - 2 days ago
0
pcre2

optional character

match strings with some optional characters
Submitted by anonymous - 7 days ago
0
pcre2

optional

optional
Submitted by anonymous - 7 days ago

how I retrieve the domain without www or other cruft

Vote

0

Regular Expression
python

"
(?P<schema>.*://)?(?P<cedentials>.*@)?(?P<www>www\.)?(?P<domain>[\w\.]+)(?P<path_query>/?.*)?
"
g

Description

Loading markdown...
Submitted by bronsen - 8 years ago