Remove Hyperlink with regex

Hi everyone, anyone who can help me with a regex expression for removing any hyperlinks on the text or string.
Texts with hyperlinks are not the same, they keep on changing
image

Hey @Anelisa_Bolosha1

Regex: \b(?:https?|ftp|file)://\S+
Use below mentioned query in assign activity to replace all the Urls:

str_Input = System.Text.RegularExpressions.Regex.Replace(str_Input, "\b(?:https?|ftp|file)://\S+","")

Note: str_Input will be the input string that stores the values.

Screenshot for your reference:
image

Regards,
Ajay Mishra

1 Like

You are genius @Ajay_Mishra , thanks so much working perfectly well

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.