Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
_AnonymousUser
Specialist III
Specialist III

[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
Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

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 "<.*?.>" .

View solution in original post

6 Replies
Anonymous
Not applicable

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
_AnonymousUser
Specialist III
Specialist III
Author

For example :
I have :
<TAG>my text<TAG>
And I want, with treplace component to have just :
my text
Anonymous
Not applicable

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
_AnonymousUser
Specialist III
Specialist III
Author

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 🙂
Anonymous
Not applicable

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
Anonymous
Not applicable

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 "<.*?.>" .