flash on 2011-6-4

by Sjeiti
♥0 | Line 25 | Modified 2011-06-04 00:24:49 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
		var a:Array = [
			 'asdf1'
			,'asdf3'
			,'asdf22'
			,'asdf11'
			,'asdf2'
		];
		//
		for (var i:int=0;i<a.length;i++) {
			var s:String = a[i];
			var aLastNr:Array = s.match(/([0-9]*)(?=\.\w+)/ );
// aLastNr:Array = s.match(new RegExp("([0-9]*)(?=\.\w+)"));
			trace(
				"asdf Test aLastNr:"
				,s
				,aLastNr.length
				,(aLastNr)
				,'_'
				//,s.match(/([0-9]*)/ )
			);
			}
            
        }
    }
}