Need regex help

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.

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,

thanks,

But i need complete mail body from “Malicious Ip List” key word.

image

Hi,

Alright.
Can you try the following?

System.Text.RegularExpressions.Regex.Match(yourString,"(?<=Mailicious IP List\s*)[\s\S]*").Value

Regards,

1 Like