RegEx - Match optional groups
Posted
by
Maurizio
on Stack Overflow
See other posts from Stack Overflow
or by Maurizio
Published on 2011-01-09T04:29:46Z
Indexed on
2011/01/10
11:53 UTC
Read the original article
Hit count: 396
I know RE is not the best way to scrape HTMLs, but this is it... I have some something like:
<td> Writing: <a href="creator.php?c=CCh">Carlo Chendi</a> Art: <a href="creator.php?c=LBo">Luciano Bottaro</a> </td>
And I need to match the Writing and Art parts. But it is not said they're there and there could be other parts like Ink and Pencils...
How do i do this ? I need to use pure Regex, no additional Python libs...
Thanks !
© Stack Overflow or respective owner