fifyx
(Filip Jędrzejczyk)
July 11, 2024, 4:27pm
1
Hello. I want to remove html tags from mail by using replace matching patterns activity. Sadly any of regex pattern i found doesn’t work. Is there any other way to remove those usuless in this case html tags or do you know how to build working regex?
Not sure is it important but im using gmail. Email body is too long paste here.
mkankatala
(Mahesh Kankatala)
July 11, 2024, 4:30pm
2
Hi @fifyx
Share us the Text and removal html tags then we try and provide you the regex.
Check the below thread it may help you,
We would recommend to setup a more defensive approach which is handling also variations e.g. spannings over line breaks:
for this lets at first extract the td content:
[grafik]
then remove the tags from the isolated splits e.g.
[grafik]
replacement with a space
Hope it helps!!
ppr
(Peter Preuss)
July 11, 2024, 4:34pm
3
Have a start with this
and feel free to add some more cleansings on it
This CheatSheet introduces the basic use of regex functions. With further examples also special cases are presented.
Introduction
From the namespace System.Text.RegularExpressions following methods are offered:
Regex.Match
Regex.Matches
Regex.isMatch
Regex.Replace
Regex.Split
A simple usage for example would look like this:
[grafik]
Recommendation:
add System.Text.RegularExpressions to the imports:
[grafik]
it allows to use the shortened statement, as the namespace part can be ommited…
Also we would recommend to check alternates: