Returns the result of a regular expression match against a value expression.
1.Regex - Name of the Macro.
2.Input Value - The value expression to search in.
3.Pattern - The regular expression to search for in the input value. NOTE: escape values when used in macro expressions.
4.Case Sensitive - If set to true searches are case-sensitive; otherwise they are not (the default).
5.Failure Result - If the regular expression does not result in a match this value will be returned instead of an empty string.
6.Success Result - If the regular expression results in a match this value will be returned instead of the matched value.
7.Match Index - If the regular expression results in a match, the 0-based index of the group will be returned instead of the matched value.
Make sure you use the correct escape characters if regular expressions are used in macro-able locations.
Copyright © 2023 pasUNITY, Inc.
Send comments on this topic.