In case you missed the announcement: Alteryx One is here, and so is the Spring Release! Learn more about these new and exciting releases 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
Top Solution Authors