SRP_Regex provides services to easily parse or pattern match strings in OpenInsight.
Regex Patterns
A regex pattern is a mini-language unto itself that is often confusing to look at, even for those used to it. SRP_Regex uses the same syntax as Javascript, so your best bet is to find an online tool to help you craft and test your regex patterns. A great resource is Regex101.com. Make sure to select ECMAScript (Javascript) as your regex flavor.
Regex is case sensitive. If you want case insensitivity, you implement it in the regex pattern itself.
Reference
Service | Description | Version Added |
---|---|---|
Extract | Extracts the first pattern match from a string. | 2.2.3 |
ExtractAll | Extracts all pattern matches from a string. | 2.2.3 |
Match | Determines if the entire string matches the given pattern. | 2.2.3 |
Search | Finds the first pattern match in a string. | 2.2.3 |
SearchAll | Finds all pattern matches in a string. | 2.2.3 |