Secondly, lets define approach: you mean the necessary info ends right
in front of the first "</br>", right?
in this case the regex will be
^.*?(?=\<\/br\>)
and, if applied to my reply text, three matching results will be:
"First you probably mean "
"60003 Lichen"
"Secondly, lets define approach: you mean the necessary info ends
right in front of the first ""
A bit of explanation:
^ checks if we are at the start of a line but grabs nothing (it is an anchor)
.*? is a lazy dot, i.e. it grabs anything as few times as possible, so
that the next regex construct finds its match
and finally (?=\<\/br\>) again grabs nothing but checks whether what
we have to the right is "</br>"
Putting a backslash in front of special; symbols is a precaution in
order that they are not treated as special symbols of programming
language/environment
--
Regards,
Eugeny Sattler