Cheers man.
I've tried using both the next <li> (actually, I used just < to cover the html as well), and the \n,, but neither seemed to work - \n was causing some problem in debug, but I can't remember it now.
On the other hand, I removed the ? from the regexp to take everything, and it automatically only takes up to the line break, so it's all working now