Community Halloween is live until October 31st! Complete any 2 quick activities to earn the 2025 Community Halloween badge. Feeling brave? Check out the activities here
Start Free Trial

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