Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r'
(?sm)<tr class=\'(Odd|Even)Row(\'.*?<td class=(\'|")no(\'|")>(?P<runnerno>\d{1,2}(|e))</td>.*?<td class=(\'|")last(\'|")>(?P<last10>.*?)</td>.*?<td class=(\'|")horse(\'|")>.*?href=(\'|")..(?P<HorseFullForm>.*?)(\'|").*?target="_blank">(?P<horse>.*?)</a>.*?<td class=(\'|")trainer(\'|")>.*?href=(\'|")..(?P<TrainerLastRuns>.*?)(\'|").*?target="_blank">(?P<trainer>.*?)</a>.*?<td class=(\'|")jockey(\'|")>.*?href=(\'|")..(?P<JockeyLastRuns>.*?)(\'|").*?target="_blank">(<span class=\'Hilite\'>|)(?P<jockey>.*?)<.*?<td.*?>(?P<barrier>.*?)</td>.*?<td.*?>(?P<weight>.*?)</td>.*?<td.*?>(?P<red>.*?)</td>.*?<td.*?>(?P<penalty>.*?)</td>.*?<td.*?>(?P<hcp>.*?)</td>| Scratched)
'
gm

Description

NSW is different to other states (see red text)

Submitted by anonymous - 5 years ago