I am trying to use the String Replace app https://www.enfocus.com/en/appstore/pro ... ng-replace to fix/cleanup the HTML of an e-mail received by Switch.
This is a part of the HTML
Code: Select all
<br><b>Send til:</b>
<br>Skabertrang
<br>Jimmy
<br>Stagehøjvej 27a
<br>Silkeborg, 8600
<br>DK
<br>
<br><b>Papiromkostninger: </b>kr. 0,00
<br><b>Prepress-omkostninger: </b>kr. 0,00
<br><b>Trykkeomkostninger: </b>kr. 0,00
<br><b>Indbindingsomkostninger: </b>kr. 0,00
<br><b>Forsendelsesomkostninger: </b>kr. 0,00
<br>
<br><b>PRODUKTLISTE</b>
<br>
I am trying to remove the lines with:
Papiromskostninger:
Prepress-omkostninger:
Etc.
I also add a stylesheet at the start of the file.
This is my multiline value in your app.
Code: Select all
</head>=</head><style> @media print { @page { size: 297mm 420mm; margin: 10mm; } body { margin: 10mm; }}</style>
.*?Papiromkostninger:.*?0,00=
The first line replaces fine.
But on the second line I try to use RegExp to remove the line with Papiromkostninger, but it does not work.
Is there some certain way I need to define the RegExp to get it to work?