can anyone pls guide me to get the port number alone from the below line? Note: i have maintain this whole line as string.
"C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\11.0\WebDev.WebServer40.EXE" /port:4274 /path:"F:\Program Files (x86)\Samples\test\" /vpath:"/"
Output i expected is 4274 alone.
I have tried many solutions from stackoverflow. nothing helps.
Thanks in Advance.
Regards, Karthi
You could simply use the below regex to get the number which exists next to the
port:
substring.