Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^https?:\/\/(www\.)?photos18\.com\/?((sort\/[\w\d]+)|(v\/[\w\d]+)|(cat\/\d)|)(\?.*)?
"
gm

Description

A regex to match photos18 urls

Submitted by anonymous - 2 years ago