Substring of two strings in flex
I have a开发者_Go百科 string like " How\Are\You-1 " . I need to substring till to " You-1 " with out using first and last index.
Thanks, ravi
Using Regular Expressions:
var myPattern:RegExp = /.+\\.+\\(.+)/;
var str:String = "How\\Are\\You-1";
trace(str.replace(myPattern, "$1"));
精彩评论