Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
twanqlik
Creator
Creator

Search string based on a character and remove or scramble

In my dashboard i'm loading a field that can contain email addresses, i would like to remove or scramble these email addresses.

Example:

Field
info@test.nl
New York
Belgium
Honda
Qlikview

Desired output:

Field
NULL or wlegh#)*%_
New York
Belgium
Honda
Qlikview

Hence, in my script i think i first need to search on values in my Field that can contain an @, and after that remove it, or scramble it.

Any ideas on how to do this?

1 Solution

Accepted Solutions
sunny_talwar

I think it should be more like this (you missed an asterisk at the end of the string)

If(WildMatch(field, '*@*'), AutoNumber(field), field) as field

you can make it more precise by adding the .* also.

If(WildMatch(field, '*@*.*'), AutoNumber(field), field) as field

View solution in original post

3 Replies
ali_hijazi
Partner - Master II
Partner - Master II

you can use the following script:
load if(wildmatch(field,'*@*'),autonumber(field),field) as field

autonumber converts the string value to a number

you can use other functions like Hash128 and other

check help for more details

I can walk on water when it freezes
sunny_talwar

I think it should be more like this (you missed an asterisk at the end of the string)

If(WildMatch(field, '*@*'), AutoNumber(field), field) as field

you can make it more precise by adding the .* also.

If(WildMatch(field, '*@*.*'), AutoNumber(field), field) as field

ali_hijazi
Partner - Master II
Partner - Master II

fixed

thanks for the attention

I can walk on water when it freezes