First, let’s answer what actually regex is. In the simplest terms, we can call it a way more advanced brother of the wildcard ("*"). Thanks to regex you can set up more sophisticated strings to use in your auto-tagging.
Let’s cover some basics.
In regex, we do not use asterisks "*" anymore but the period (".") in combination with some other character to specify the condition. The closest to the wildcard as you know it is ".?“ which says that the substituted place (".") could be any character or digit ("?").
Below you can see the example from the testing environment:
We are using the keyword "/hel.?o". You can see that both examples (helpo, hel3o) were matched. You can also see explanation in the right panel:
The position of the dot also determines the position of the substitute. If I use „he3lo“ it won’t match
There are many different variations and conditions like \d (any digit) or the amount of dots ("....?")that determine the number of characters to match.
You can find the legend with all the possibilities in the right down corner of the testing environment
Two things to remember. Regex is case sensitive and you have to use the forward-slash (\) to add the conditions. Slash (/) will end the string.
If you want your string to ignore case sensitivity add (?i) at the beginning of it like this: (?i)hel.?o
You can see both of our examples matched the string:
If you have any troubles setting up your regex query, contact our support team :)
Comments
0 comments
Please sign in to leave a comment.