Skip to main content

How can use a wild card when part of the identifier is always changing?

Question

How can I use a wild card when part of the identifier is always changing?

How can I find an object, if part of the name is always changing?

Resolution

A quick way to work with accessors, or objects where a portion of the name or attribute is dynamic, is to use the Fuzzy Logic syntax. By simply enclosing the string in quotes with [ ], AIQ will treat that portion as a contains search, and not require a complete match.

Read more about Fuzzy Logic in our documentation

Example 1

Given an object recorded as span("person testuser")
Where testuser matches the name of the logged in user
The Fuzzy Logic syntax would be span(["person"])

Example 2

Need more complex pattern matching? Learn how to use Regular Expressions here


Last updated: June 02, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai