Thread: Regex examples
View Single Post
Old 07-14-2015, 05:56 PM   #473
1v4n0
Groupie
1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.1v4n0 writes the songs that make the whole world sing.
 
Posts: 173
Karma: 40000
Join Date: Oct 2013
Device: kindle
Doesn't work. Just finds all the single paragraphs between

Code:
<p><a href=
and
Code:
</p>
Which is the same thing I get with

Code:
<p><a href=(.*?)</p>
I need something that selects everything from one occurrence of

Code:
<p><a href=
to the following one. There are "line breaks" in between (I don't know if that's the right word. Line breaks, something like this

Code:
</p>

  <p>
)

THIS WORKS, but it's not very clean work:

First, find all the occurrences of \s+ and replace with space.

Then look for
Code:
<p><a href=(.*?)<p><a href=(.*?)
The code is barely readable this way though, as there are no line breaks anymore.

Ty
1v4n0 is offline   Reply With Quote