Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

RegEx replace HTML tag with nothing

hellyars
13 - Pulsar

Hi,

 

I want to remove a specific HTML tag and replace it with nothing.

 

<div style="text-align: center;">

I tried using a RegEx tool with the following expression.

 

^.*(<div style="text-align: center;">).*  or
(^<div style="text-align: center;">).*

Both failed.

1 REPLY 1
MarqueeCrew
20 - Arcturus
20 - Arcturus

please try this:

 

REGEX_Replace([Field1], "<div style=.*?>", '')
Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Labels