Hello.
I use IE 6
I have the following code:
var flag = false;
var str = "aaaa\na <B>italico</B> e mais\n algo ee e e eee e e e e e a a a a a a a a a a a a a a a a a a a a ";
if(str.match(/<B>((.)*[\r\n]*(.)*)*<\/B>/i) != null) flag = true;
alert(flag);
When i run that in IE, it just freezes,and says "not responding".
I'm trying to find html tags within a text, in the example above im just trying to find if the text has the bold tag.
Can anyone help me, and explain me what's wrong?
Cheers
I use IE 6
I have the following code:
var flag = false;
var str = "aaaa\na <B>italico</B> e mais\n algo ee e e eee e e e e e a a a a a a a a a a a a a a a a a a a a ";
if(str.match(/<B>((.)*[\r\n]*(.)*)*<\/B>/i) != null) flag = true;
alert(flag);
When i run that in IE, it just freezes,and says "not responding".
I'm trying to find html tags within a text, in the example above im just trying to find if the text has the bold tag.
Can anyone help me, and explain me what's wrong?
Cheers