I have a 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"));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.