c# - Extracting information that always follows a specific string -
i trying extract info after specific string int file. next segment contains string:
<plane thez="0" thet="0" thec="0" deltat="0.2056"/><tiffdata firstt="0" firstz="0"
the info trying extract 0.2056
follows deltat="
want search quick possible. wondering best way it?
you utilize regular expression
var regex = new regex(@"deltat=""(.*?)"""); foreach (match m in regex.matches(inputtext)) { console.writeline(m.groups[1].value); }
however, since looks might x(ht)ml, prefer linq-to-xml if possible
c# string file search
No comments:
Post a Comment