Skip to content

Text Match examples #1289

Answered by crowdstrikedcs
mdhowle asked this question in Q&A
Feb 28, 2025 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @mdhowle thanks for the question!

The ~ (text match) operator:
Performs fuzzy text matching
Ignores:
Case (upper/lower)
Spaces
Punctuation

For example: hostname:~'lab machine' would match:

  • "Lab-Machine"
  • "LABmachine"
  • "lab_machine"

The !~ (does not text match) operator:
Works exactly like ~ but returns the opposite result
Returns true when the text does NOT match

For example: hostname:!~'lab machine' would match everything EXCEPT variations of "lab machine"

Compared to regular string equality (:):
~ is more flexible for text searching
: requires exact matches including case and spacing

So you can use ~ when you need flexible text searching but use : when you need exact matching.

Let us…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mdhowle
Comment options

@crowdstrikedcs
Comment options

Answer selected by mdhowle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
code samples Functioning sample code to get you started FQL Issues or questions regarding Falcon Query Language
2 participants