Hi,
I have a piece of text containing HTML code.
I want to replace (in Javascript) what matches a RegExp, but NOT if the
match is inside an HTML tag.
Is it possible without slicing the text into pure text and HTML parts?
For instance:
replace (/"([^"]*?)"/, "? $1 ?")
replaces "quoted text" with ? quoted text ?
But it should not replace
<TD width="100">
with <TD width=? 100 ?>
Any hint?
--
_______________________________________
REUSE CODE! Use custom tags;
See
http://www.contentbox.com/claude/customtags/tagstore.cfm(Please send any spam to this address:
piegeacon@...)
Thanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48Message:
http://www.houseoffusion.com/lists.cfm/link=i:21:923Archives:
http://www.houseoffusion.com/cf_lists/threads.cfm/21Subscription:
http://www.houseoffusion.com/lists.cfm/link=s:21Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.21Donations & Support:
http://www.houseoffusion.com/tiny.cfm/54