Regular Expressions 101

Community Patterns

0

scrape pdf

Python
get data from pdf
Submitted by anonymous - a year ago
0

Meh

Python
d
Submitted by anonymous - a year ago
0

LinkedIn Profile Url

Java 8
LinkedIn Profile Url
Submitted by Morons - a year ago
0

lat cyr letters

Java 8
only lat and cyr letters
Submitted by anonymous - a year ago
0

Pick third section

Python
Pick third section
Submitted by Charles - a year 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 - 7 years ago