开发者

Substring of two strings in flex

开发者 https://www.devze.com 2023-01-18 13:58 出处:网络
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.

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

精彩评论

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