regular expression escaping

by wh0
I don't get it.
How do I find the string \u0064?
♥0 | Line 16 | Modified 2011-04-18 15:24:20 | MIT License
play

ActionScript3 source code

/**
 * Copyright wh0 ( http://wonderfl.net/user/wh0 )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/v4Uw
 */

package {
    import com.actionscriptbible.Example;
    import flash.utils.describeType;
    public class FlashTest extends Example {
        
        public function FlashTest() {
            // Use a regular expression to find \u0064
            
            // TODO: put your regular expression here
            var re:RegExp = /\\u0064/;
            
            trace('source: ' + re.source);
            
            var str1:String = '\\u0064';
            trace('test string 1: ' + str1);
            trace('should be \\u0064: ' + re.exec(str1));
            var str2:String = 'foo5bar';
            trace('test string 2: ' + str2);
            trace('should be null: ' + re.exec(str2));
        }
        
    }
}

Forked