<textarea id="bla" rows="4" cols="40"></textarea>
<script>
 string = "sdfsg sdgf sdgf SD gf sdgf <span sdfsdfsdf></span> <META> <meta sdfg fsdfg sdfg></meta> asfasdf asdf asdf";
 Test = string.replace(/(<\/?META[^>]*>)/ig,'');
 document.getElementById("bla").value = Test;
</script>
 
remember
/g = global replace
/i is non case sensitive
/gi is both together
 
() to group strings together and [] to define a character class
 
that should work
 
Steve
-----Original Message-----
From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Andrew Scott
Sent: Monday, June 19, 2006 11:25 AM
To: cfaussie@googlegroups.com
Subject: [cfaussie] Re: JS Reg _expression_

Yes,

 

Because I have a DevNet serial here and when returning data via Ajax CF places the <meta> tag in the string and JS craps out with this info in the stringL

 

 

 

Senior Coldfusion Developer

Aegeon Pty. Ltd.

www.aegeon.com.au

Phone: +613  8676 4223

Mobile: 0404 998 273

 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cfaussie
-~----------~----~----~----~------~----~------~--~---

Reply via email to