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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -