Regular Expressions 101

Community Patterns

1

Match each tag

Python
Match each tag in a lrc file
Submitted by Cricar - 2 months ago
1

Extract tag name and its content

Python
Lrc file
Submitted by Cricar - 2 months ago
1

instagram url

Python
gets the url instagram
Submitted by samuel06santos - a month ago
1

day date time

Python
no description available
Submitted by anonymous - 3 years ago

URL Matcher

1

Regular Expression
Python

r"
^(?:(?P<protocol>http[s]?|ftp)(?::\/\/))?\/?(?P<address>(?P<hostname>[^\/\.]+)*?(?:\.)?(?P<domain>[^\/\.]+(?:\.[^:\/\s\.]+(\.[^:\/\s\.]+){0,1})?))(:\d+)?(?:$|\/)(?P<fullpath>(?P<path>[^#?\s]*?)(?:\/(?P<name>[^#?\/\s]*))?)(?:\?(?P<arg>.*?))?(?:#(?P<anchor>[\w\-]+))?$
"
mg

Description

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