ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

Delete a specific part of a string

TarekIMEX
メテオロイド

Hello everyone, I want to delete a specific part of a string.

I have a column 'Comment'. Within this column I have texts values of this type :

 

<p><span style="color: #333333; background-color: #ffffff;">Units reduced due to space surrender</span></p>

 

I want to delete the "HTML part". To be more clear, I want to delete all the stuff between "<*>".

Thank you all.

4件の返信4
usmanbashir
ボリード
binu_acs
ポラリス
TarekIMEX
メテオロイド

It worked ! Thank you.

Can you explain to me how REGEX_Replace works please ?

I'm not sure to well understand <[^>]*

Thank you

binu_acs
ポラリス

@TarekIMEX 

This regular expression will match any text within < and > brackets, including the brackets themselves, and replace it with an empty string. Here's what each part of the regex pattern does:

<: Matches the opening angle bracket.
[^>]*: Matches any character that is not a closing angle bracket >, zero or more times.
>: Matches the closing angle bracket.

 After applying this regex, all text within the <> tags will be removed from the text.
ラベル
トップのソリューション投稿者