shaikmdrafi
(shaik mahammad raphi)
1
Hi team,
I Have below mail body, i need to get mail body from “Malicious IP List” to endof mail body. Please help me in finding regex.
Hi team,
please find below ip list.
Mailicious IP List
123.13.12.12/32
121.121.0.0/32
212.121.18.18/32
101.21.65.121/32
Thanks & Regards,
Rafi.
Yoichi
(Yoichi)
2
Hi,
Hope the following helps you.
Sequence.xaml (6.7 KB)
System.Text.RegularExpressions.Regex.Matches(yourString,"\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/\d{1,2}")
This is assumed there is no ip address except malicious ip address in the mail.
Regards,
shaikmdrafi
(shaik mahammad raphi)
3
thanks,
But i need complete mail body from “Malicious Ip List” key word.

Yoichi
(Yoichi)
4
Hi,
Alright.
Can you try the following?
System.Text.RegularExpressions.Regex.Match(yourString,"(?<=Mailicious IP List\s*)[\s\S]*").Value
Regards,
1 Like