Need help with regex html code
#1
Hi,

I want to match the html code of this page Link from <table class="episodenliste"> until <div class="episodenliste-unterteil-spacer">.

A simple
Code:
(<table class="episodenliste">(.*?)<div class="episodenliste-unterteil-spacer">)

doesn't work.

Can anyone point me to the right direction?

Thank you.

Regards
Reply
#2
anyone? Sad
Reply
#3
(2015-01-29, 22:53)ErAzOr2k Wrote: Hi,

I want to match the html code of this page Link from <table class="episodenliste"> until <div class="episodenliste-unterteil-spacer">.

A simple
Code:
(<table class="episodenliste">(.*?)<div class="episodenliste-unterteil-spacer">)

doesn't work.

Maybe the "." in "(.*?)" doesn't include newlines and you have to take care of that?

If you want to grab the individual episodes' data, you could try for
</td></tr><tr itemprop="episode" … AllTheNiceStuff … </td></tr></tbody></table>
and check 'repeat' for the regexp in ScraperEdit.

Hint: try https://regex101.com/#python, insert the
<table class="episodenliste">......<div class="episodenliste-unterteil-spacer">
part as test string and in the flag field (grey "gmixsu") type "g", then test your regexp.

hth,
y
Reply

Logout Mark Read Team Forum Stats Members Help
Need help with regex html code0