I'm after a regex which can support the following test case:
This should
all be
one match
#this should not match
1. nor this
> nor this
this should be a second match
So I can then wrap these two matches in <p> tags. However, I'm getting stuck on the newlines: two should break the match, but one newline cannot. Here's the closest I've come:
(^[A-z].+)
This correctly grabs all the desired text, but forms four matches instead of the desired two.
Thank you for your time.