Amy, try:
const caret:RegExp = /\^/g;
theText = theText.replace(caret, "your replacement");
Matt
On 31/10/2007, at 5:22 AM, Amy wrote:
I'm trying to work around the bug in Flex that adds carriage returns
around html tags in XML, even ones wrapped in CDATA. So, I figure the
caret character is the closest match for the < (<) for my client to
easily be able to edit the XML files without having to learn a whole
lot of code or having to write an editor for them.
The code I am using is:
var caret:RegExp = /\^\g/;
theText=contentItem.valueOf().toString();
theText=theText.replace(caret, "<");
but nothing gets replaced.
What am I missing?
Thanks;
Amy
Messages in this topic (1)
Reply (via web post) | Start a new topic
Messages
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.com
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch
format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
RECENT ACTIVITY
77
New Members
Visit Your Group
Yahoo! Finance
It's Now Personal
Guides, news,
advice & more.
New web site?
Drive traffic now.
Get your business
on Yahoo! search.
HDTV Support
on Yahoo! Groups
Help with Samsung
HDTVs and devices
.
__,_._,_