community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx designer Discussions

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

RegEx replace HTML tag with nothing

Fireball

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.

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

please try this:

 

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

Chaos reigns within. Repent, reflect and reboot. Order shall return.
Labels