Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
ali_hijazi
Partner - Master II
Partner - Master II

regular expressions!?

Hello

got a field that contains HTML code for example ...<p>text</p> <br> etc....

is there a way to remove all HTML tags and keep the rest of text to display it properly on a table box?

please advise

I can walk on water when it freezes
5 Replies
robert_mika
Master III
Master III

Could that be any  string length with any HTML code?

petter
Partner - Champion III
Partner - Champion III

You can call a Macro function from the Load Script. The Macro function could be a JScript (Microsofts JavaScript that comes with your Windows OS). This has a Regular Expression component that could be invoked. If you have a regular expression that strips HTML you can use this approach to solve your problem....

Maybe just using PowerShell is the best, using the Execute statement in the Load Script ...

This is a one-liner with PowerShell:   

$myStr -replace "<.*?>"



ali_hijazi
Partner - Master II
Partner - Master II
Author

mainly formatting tags like <b>, new paragraph <p> new line <br>

I can walk on water when it freezes
MarcoWedel

Hi,

if you are looking for regular expressions, maybe these links on using RegEx in QlikView might help:

regards

Marco

robert_mika
Master III
Master III

This does not solve your problem but you can use 4-5 Repalce to get what you need:

=Replace(Replace(Replace('<p>text</p> <br>','<p>',''),'</p>',''),'<br>','')

Could you post some "real" examples to play with VBS?