Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-03-22 14:51
Flavor·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
Open regex in editor

Description

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

Submitted by Dirkjan Krijnders