I have the following pattern:
<tbody>
<div id="aaa">Music</div>
Ggfdlkjgfds f$5 j3k
<div title="Song title #1"></div>
Fdjflkdsjfds
<div title="Song title #2"></div>
</tbody>
And I have to extract "Song title #1" and "Song title #2" from this string.
By far I wrote something like this:
(Music)(.*?)(title=\")(.*?)(\")(<\/tbody>)
But it doesn't work. How can I do that?
Thanks!
EDIT. This is not HTML, but the part of the source code, loaded from facebook user's page. There can be basically anything between those lines, so I'm looking only for three keywords:
Music
title="
</tbody>
And wanna find all matches after the middle one.