|
@@ -1015,15 +1015,25 @@ expressions. Matching is case-sensitive.
|
|
|
*Example*
|
|
|
[source,eql]
|
|
|
----
|
|
|
+// The * wildcard matches zero or more characters.
|
|
|
// process.name = "regsvr32.exe"
|
|
|
wildcard(process.name, "*regsvr32*") // returns true
|
|
|
wildcard(process.name, "*regsvr32*", "*explorer*") // returns true
|
|
|
wildcard(process.name, "*explorer*") // returns false
|
|
|
wildcard(process.name, "*explorer*", "*scrobj*") // returns false
|
|
|
|
|
|
+// The ? wildcard matches exactly one character.
|
|
|
+// process.name = "regsvr32.exe"
|
|
|
+wildcard(process.name, "regsvr32.e?e") // returns true
|
|
|
+wildcard(process.name, "regsvr32.e?e", "e?plorer.exe") // returns true
|
|
|
+wildcard(process.name, "regsvr32.exe?") // returns false
|
|
|
+wildcard(process.name, "e?plorer.exe") // returns false
|
|
|
+wildcard(process.name, "e?plorer.exe", "scrob?.dll") // returns false
|
|
|
+
|
|
|
// empty strings
|
|
|
wildcard("", "*start*") // returns false
|
|
|
wildcard("", "*") // returns true
|
|
|
+wildcard("", "?") // returns false
|
|
|
wildcard("", "") // returns true
|
|
|
|
|
|
// null handling
|
|
@@ -1056,8 +1066,10 @@ field data types:
|
|
|
+
|
|
|
--
|
|
|
(Required{multi-arg-ref}, string)
|
|
|
-Wildcard expression used to match the source string. If `null`, the function
|
|
|
-returns `null`. Fields are not supported as arguments.
|
|
|
+Wildcard expression used to match the source string. The `*` wildcard matches
|
|
|
+zero or more characters. The `?` wildcard matches exactly one character.
|
|
|
+
|
|
|
+If `null`, the function returns `null`. Fields are not supported as arguments.
|
|
|
--
|
|
|
|
|
|
*Returns:* boolean
|