I have 2 strings. and I need one Regex for both.
s1="The 8481D provides extraordinary accuracy, stability, and lower SWR.";
s2="<li>Complete with case and 9V battery</li><div id='warranty'><img src='1yr.gif'>";
I need to get all characters of s1 and the characters of s2 till the characters: <div id='warranty'>
so, it will be:
s1="The 8481D provides extraordinary accuracy, stability, and lower SWR.";
s2="<li>Complete with case and 9V battery</li>";
I thought of: .+?(?<=<div id="warranty">)
but I got just the s2 string, also .+?(?<=<div id="warranty">|\.)
didn't work, I got s1, but got too much characters in s2.