Regular Expressions 101

Library entries

RANSW

Vote

0

Regular Expression
python

'
(?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

Loading markdown...
Submitted by anonymous - 2 years ago