开发者

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")); 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜