Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
(?xs)<tr>[^<]*?<td.*?>(.*?)</.*? <td.*?>.*?(?#skip second col) <td.*?>(?:<.*?>)+?((?:(?!<).)*)(?:<.*?>)+?</td.*? <td.*?>(.*?)</.*? id=([0-9]+)
"
g

Description

match an html table suffs

Submitted by anonymous - 6 years ago