Skip to main content Skip to complementary content

PurgeChar - script and chart function

PurgeChar() returns a string consisting of the characters contained in the input string ('text'), excluding any that appear in the second argument ('remove_chars').

Syntax:  

PurgeChar(text, remove_chars)

Return data type: string

Arguments:  

PurgeChar arguments
Argument Description
text The original string.
remove_chars A string containing the characters in text to be removed.

Return data type: string

Examples and results:  

Examples and results
Example Result
PurgeChar ( 'a1b2c3','123' ) Returns 'abc'
PurgeChar ( 'a1b2c3','312' ) Returns 'abc'

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!

Join the Analytics Modernization Program

Remove banner from view

Modernize without compromising your valuable QlikView apps with the Analytics Modernization Program. Click here for more information or reach out: ampquestions@qlik.com