source:
<B>aaa</B>
java regex to find this:
code to convert: <B>aaa</B> to aaa:
CRLF = Pattern.compile("<b\\b[^>]*>(.*?)</b>",Pattern.CASE_INSENSITIVE);
m = CRLF.matcher(s);
while (m.find())
{
s1 = m.group(1);//to kar je vmes med bold tagi
s = s.replaceFirst(m.group(0),"" + s1 + "");
}
it stops working when source is in multiline,like:
<B>a
a
a</B>
Thanks for help.