string ver = "Ver 1-2x"; ver = ver.Substring(4, 3);
string str="Ver 1-2x"; int startind=str.indexof("1"); int endind=str.indexof("x"); string result=str.substring(startind,endind);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)