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=«&nbsp;100&nbsp;»>

Any hint?

-- 
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:21:923
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/21
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:21
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to