Closed Thread Icon

Preserved Topic: RegExps + IE + NS Pages that link to <a href="https://ozoneasylum.com/backlink?for=18111" title="Pages that link to Preserved Topic: RegExps + IE + NS" rel="nofollow" >Preserved Topic: RegExps + IE + NS\

 
Author Thread
lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 09-03-2001 14:10

Again, I can't see what's wrong!?

Maybe someone can not only help me solving it but also explaining to me why Netscape is always causing me troubles.

code:
pat = /.*function[ ]+([^\(]+)[\(]([^\)]*)\)/;
str = new String(new Function("alert('hi!');"));
// alert(str);
alert(str.match(pat));



IE displays correctly what should be seen, but NS is displaying NULL! what's wrong?!

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 09-03-2001 21:53

If you remove ".*" from the beginning of the RegEx it will work fine in NN...

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 09-04-2001 09:04

Thanks mr.Max....it worked....


I though of that too today...

« BackwardsOnwards »

Show Forum Drop Down Menu