[thelist] RE's in Javascript

Thorne, Brenton Brenton.Thorne at sunwater.com.au
Mon Jun 16 22:54:29 CDT 2003

> I''ve read all the RE articles on Evolt but I'm completely stuck on something that seems like it should be simple.
> Why would this not return any instances of '<a'  ?
> str = "<td colspan=\"2\" class=\"GRID\"><a href=\"javascript:void(0)\">30 Dec 2002</a></td>";
> re = /<a/gi;
> found = str.match(re); 
> document.write(found);
> Thanks,
> SD.

The information in this e-mail together with any attachments is
intended only for the person or entity to which it is addressed
and may contain confidential and/or privileged material.
Any form of review, disclosure, modification, distribution
and/or publication of this e-mail message is prohibited.  
If you have received this message in error, you are asked to
inform the sender as quickly as possible and delete this message
and any copies of this message from your computer and/or your
computer system network.  
Any attachments should be checked for viruses by you, before being opened. SunWater accepts no responsibility for an attachment that contains a virus.

More information about the thelist mailing list