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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
zied_ahmed1
Specialist
Specialist

script in query to script Qlik

Hello ,

I have this in a query and i need to put it in script Qlik :

Words like '%:[^0-9+]%-'

how to write it with scripting Qlik

Thanks

6 Replies
swuehl
Champion III
Champion III

What kind of script is your query currently running? Is this script evaluating also the regular expression style pattern?

zied_ahmed1
Specialist
Specialist
Author

If I understand your question i load a simple query from MS SQL

swuehl
Champion III
Champion III

Maybe like

Purgechar(Words,'0123456789+')  like '*:?*-'

swuehl
Champion III
Champion III

Well, I think my previous answer is not correct.

Try with the regular expression connector:

https://help.qlik.com/en-US/connectors/Subsystems/Web_Connectors_help/Content/Connectors_QWC/Data-So...

swuehl
Champion III
Champion III

Or using a MAP to facilitate the exclusion character filter:


MAP:

MAPPING LOAD In, ':1' as Out INLINE [

In

:0

:1

:2

:3

:4

:5

:6

:7

:8

:9

:+

];




LOAD *,

not MapSubstring('MAP',Words) like '*:1*-' and Words like '*:?*-' as test


INLINE [

Words

Hi2384-

12:1a-

12:a1-

:a1-

:a-

:a

];

zied_ahmed1
Specialist
Specialist
Author

Thank you for answer ,

The problem there is not just Words there is some other fields so i need something like in MS SQL to do it