I need to build a regex. the string i want to match always starts with \ then 4 or 5 numbers then another \
For example.
- Welcome Home<\217.163.24.49\7778\False,
- Euro Server\217.163.26.20\7778\False,
- Instagib!)\85.236.100.115\8278\False,
in first example i need "7778". In second example i need "7778". In third example i need "8278".
these 4 digit numbers is actually a port number, and its the only time on each line that this series of characters (eg, \7778\ ) would appear. sometimes the port number is 4 digits long, sometimes its 5.
I already know how to keep the string for later use using Regex.Match.Success, its just the actual regex pattern I am looking for here.
thanks