Raphael
09-22-2011, 08:11 PM
I have this string:
this is my test <a href="yay.html">yay</a>
and want to just match the part before the <a...:
this is my test
I can't figure out the regular expression for this. I've tried everything I can think of. It seems that it needs to do a non-greedy search on the first < it finds, but nothing works, like:
((.*<)?)
Please help, thanks!
this is my test <a href="yay.html">yay</a>
and want to just match the part before the <a...:
this is my test
I can't figure out the regular expression for this. I've tried everything I can think of. It seems that it needs to do a non-greedy search on the first < it finds, but nothing works, like:
((.*<)?)
Please help, thanks!