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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -