[resolved] regex to replace html tags

One Star

[resolved] regex to replace html tags

Hello,
I want to use a regex with treplace component to erase all the HTML tags, I've try tried "<.*?.>" but it doesn't work.
Can you help please ?
Thank you

Accepted Solutions
Highlighted
One Star

Re: [resolved] regex to replace html tags

Hi. I guess the screenshot by Shong could be missleading. At least in my version it works only when using the !!!Advanced Mode!!! section with "<.*?.>" .

All Replies
Community Manager

Re: [resolved] regex to replace html tags

Hello
Can you give us an exmaple of your string and what are your expected result?
I tested a simple example on TOS3.2.0 and it works well.
Best regards

shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] regex to replace html tags

For example :
I have :
<TAG>my text<TAG>
And I want, with treplace component to have just :
my text
Community Manager

Re: [resolved] regex to replace html tags

Hello
Yes, it works fine on my machine.
please log in as a member of forum and load some screenshots of your job.
Best regars
shong
----------------------------------------------------------
Talend | Data Agility for Modern Business
One Star

Re: [resolved] regex to replace html tags

Hello chong,
Oh You are right, "<.*?.>" is OK I don't know why It didn't work first, maybee I didn't wrtie "<.*?.>" exactly... sorry :-)
One Star

Re: [resolved] regex to replace html tags

Hello,
I have the same issue but with several html tags in my string, something like this:
Text<span class="tx"><strong>Text<br /><br />Text</strong></span>
I can't have a good result with your solution with search "<.*?.>" . I also change remove de check in Entirely Match.

Thank you
Highlighted
One Star

Re: [resolved] regex to replace html tags

Hi. I guess the screenshot by Shong could be missleading. At least in my version it works only when using the !!!Advanced Mode!!! section with "<.*?.>" .

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Downloads and Trials

Test drive Talend's enterprise products.

Downloads