I am trying to fetch the IP addr and Port no separately from a given string.
STRING:
(10.10.2.5:1567)
I need the O/P as
10.10.2.5
1567
I am new to RegEx and the pattern I am using is
\(([\d.]+):\d+\).*
This one seems to pick 10.10.2.5
but fails to pick the 1567