My regular expression method: // Match path string regexStrPath = "/ b [az]: // [^ /: *?" <> | / R / n] * "; // matching time, size and File name string regexstrinfo = "(?
Matchcollection mcPath = regex.match (yourstring, regexstrpath, regexoptions.ignorecase); // ignore the case of small-sized Foreach (Match m in mcpath) {string path = m.value; // path}
MatchCollcetion mcInfo = Regex.Match (yourString, regexStrInfo, RegexOptions.IgnoreCase); foreach (Match m in mcInfo) {string name = m.Group [ "name"] Value;. String size = m.Group [ "size"]. Value; string time = m.Group ["time"]. Value;}