Regex find,replace multiple characters

Hi everyone,
Please help on the best way to find and replace some special characters on the body of the email.
These ones:

  1. < - &lt;
  2. > - &gt;
  3. & - &amp;
  4. ' - &apos;
  5. " - &quot;
    Is there a regex pattern For example search on the email body for this: ‘&’ and replace with this ’ ↦ ’

Could there be maybe a regex pattern that will search for all of those char at once then if it finds any then replace those ones it finds, instead of me using nested IF’s.

it might be better to use a method to encode the text like
grafik

Hi @ppr thanks for the response,

is project compatibility set to Windows or to Legacy?

It doesn’t show on the .json text file but I think it’s legacy

When:
grafik
(Studio Bottom right)

Then:

  • close the XAML
  • TAKE A BACKUP FROM THE XAML
  • Open XAML within a text editor (notepad++ is recommended)
  • Add the following lines, if it is missing
    grafik
<AssemblyReference>System.Web</AssemblyReference>

AND
grafik

      <x:String>System.Web</x:String>
  • Save the XAML and close the text editor

  • Refresh from Studio
    grafik

  • Open the XAML within Studio and try again

1 Like

image
Nope does not show on my side

show all or
grafik

1 Like

Could you please also send me screenshots of the activities you used please

Assign Activity will be used

Lets avoid ping-pong and have straighforward discussions and progress

Is there a way this Could this be done using regex?

we recommend to prefere the right approaches / dedicated options and with HttpUtility.Encode we do have an appropriate option

As an alternate give a try at:
grafik

Alright this worked for an & character:
Here is a text I was testing with

Output:
image
on the apostrophe of didn’t it put the '.
I think the second suggestion will do thank you so much

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