The first example strips out the HTML. The second example shows how to target a single quote using unicode.
////////////////////////////////////////////
//Example 1:
////////////////////////////////////////////
var re:RegExp = /<font face=\u0022(.*)\u0022 >(.*)<\/font>/i;
var str:String = '<P ALIGN="LEFT"><FONT FACE="Arial" >this is a test</FONT></P>';
var result:Object = re.exec(str);
trace(result[1]);//Arial
trace(result[2]);//this is a test
////////////////////////////////////////////
//Example 2: Replace all of the single quotes with double
////////////////////////////////////////////
var str2:String = "This 'is' the 'first' time 'ever'";
str2 = str2.replace(/\u0027+/g, '"');
trace(str2);
AS3: Regular Expression Basics
Here are some Regular Expression basics in Actionscript 3. 1. RegExp.text(string) returns a Boolean 2. RegExp.exec(string) returns an Object 3. String.search(pattern) returns...
AS3: Use HTML and JavaScript to send Text to Flash
This is the first of two ways to send Text to Flash using HTML and JavaScript. To follow my example, you must download and link to [SWFObject](http:...
AS2: Inline CSS
This shows how to create Cascading Style Sheets using ActionScript. /************************** CSS Translation of Properties **************************/ /* HTML ActionScript color color display display font-family fontFamily font-size fontSize font-weight fontWeight margin-left marginLeft...