Say you have the following string: var s:String = "This is a test. Is this a test? Yes.";
I am trying:
var findAndReplace:RegExp = new RegExp("Is this a test?", "gi");
s=s.replace(findAndReplace,"xxx");
I would expect to get back:
This is a test. xxx Yes.
but there seem to be an issue with the ? - how would I handle a ? in this case?
Thanks!
Ted
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

