I am trying to write a regular expression that can parse the text between < p >< /p > tags. There will be up to 3 lines of text in a row. I thought this might be possible using the (?= search ahead feature.
The code that I am currently using to get one line is as follows.
<p>([^']*?)<[/]p
Is it possible to have one regular expression that can get the text between multiple rows of tags? Each line would need to be in its own group.
An example would be
<p>The</p>
<p>Grey</p>
<p>Fox</p>