c# - How to split what I have after equal and between `""`? -
how split have after equal , between ""
? have text file 1 of rows : plp="some text"
, , want some text
, put in other file. use next code, split "some text"
, want some text
:
if (txt.contains("plp=")) { var plppath = txt.split('=')[1]; newinstaller = newinstaller.select(line => regex.replace(line,@"fileinstallationkey=.*", "fileinstallationkey=" + plppath)); }
you can this:
txt.split('=')[1].replace("\"", "");
Comments
Post a Comment