I am trying to come up with a regular expression that removes the IP Address from multiple different texts groups
I am using XML when calling my regexp.
Text I receive from client below:
Future_7330
Future_7340
SNANTXWA010153021-76.200.41.6-MULTI AND MGT
SNAZTXSI01HUT1011-76.200.41.30-Unicast
SNANTXW010153021-76.200.41.6-UNICAST
IPDSLAM-HXC101260-71-71.149.53.62
CHVWTXGT---01CAB101A-71.149.53.58
ATASTXADOL0010BAY111-71.149.52.41-MULTI AND MGT
so my end result I would like it to look like this below:
Future_7330
Future_7340
SNANTXWA010153021-MULTI AND MGT <----- (-MULTI AND MGT can bee keep or remove what ever makes it easy for the reg exp)
SNAZTXSI01HUT1011-Unicast <-----(-UNICAST can bee keep or remove what ever makes it easy for the reg exp)
SNANTXW010153021-UNICAST <-----(-UNICAST can bee keep or remove what ever makes it easy for the reg exp)
IPDSLAM-HXC101260
CHVWTXGT---01CAB101A
ATASTXADOL0010BAY111-MULTI AND MGT <------(-MULTI AND MGT can bee keep or remove what ever makes it easy for the reg exp)
No comments:
Post a Comment