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: 
cheryl
Contributor III
Contributor III

Filter table based on text pattern(Regex)

Hi,

I have a column of 'Project.name', and I want to create a filter:

If ('Project.name' LIKE '\d{8}*', 'Suspicious', 'OK)

I want to use Regex to match the pattern, however it doesn't work.

The target project names start with 8 digit number. For example, '30294892 XXXX'.

Does anyone know how to achieve this? Thanks very much in advance.

Labels (5)
1 Solution

Accepted Solutions
JGMDataAnalysis
Creator III
Creator III

If(Len(KeepChar(Left([YourField], 8), '0123456789')) = 8, 'Suspicious', 'OK')

View solution in original post

1 Reply
JGMDataAnalysis
Creator III
Creator III

If(Len(KeepChar(Left([YourField], 8), '0123456789')) = 8, 'Suspicious', 'OK')