Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
https://www\.roco\.cc/rde/(produkte/([A-z]*)|home-neuheiten)/([A-z]*)/*([0-9]{5,})-([A-z]*)-(?P<baureihe>el|e|cc|litra-eb|s|br|tkt|rh)*(?P<number>[e%0-9\-]*)-([a-z\-]*).html
"
g

Description

Parses a url on the roco.cc site to its informative parts

Submitted by Dirkjan Krijnders - 2 years ago