forked from: Chapter 6 Example 6
forked from Chapter 6 Example 6 (diff: 2)
ActionScript3 source code
/**
* Copyright devtrain23 ( http://wonderfl.net/user/devtrain23 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/aqjS
*/
// forked from actionscriptbible's Chapter 6 Example 6
package {
import com.actionscriptbible.Example;
public class ch6ex6 extends Example {
public function ch6ex6() {
//"Peace"
var jp:String = "平和";
var he:String = "שלם";
var ar:String = "سلام";
trace(jp + "\n " + he + "\n " + ar);
//Your editor may display these strings right-to-left, but they are still stored from index 0 up.
trace(he.charAt(2)); //ם
//ActionScript Regular Expressions are Unicode-safe!
trace(jp.match(/和/));
}
}
}
