Need to parse a string having format like this -
"xxx.xxx.xxx.xxx ProxyHost=prod.loacl.com ProxyUser=test ProxyPas=tes@123 ProxyPort=1809".
Need to split or parse in such a manner that I get "prod.loacl.com"
"test"
"tes@123"
"1809"
in some strings and if any of parameters is not defined like ProxyPas
then it should be null
.
We need to ignore the IP addr xxx.xxx.xxx.xxx it will be always concatenated.
Do we have split or use some list to get this done...which is the best possible way to extract this information and why?
Note: Input string can change except ProxyHost parameter, user may not input the ProxyPass etc.