Match only the first line during replace
hi all.....
i try to mod ify my .ini file using regex function......and this is my code
Dim checkpassword As String = Regex.Replace(Regex.Replace(line, "^USER=goh.dev.ss.lan", ""), "Password=", "Password=123")
sw.WriteLine(checkpassword)
sw.Close()
this will replace all the matched password.........but i only wanna replace the 1st line which match this condition.....how can i do this ?
or there is another ways in solving this problem...
thanks

