Page History
SRP_Regex Color provides services to easily parse or pattern match strings in OpenInsightfor bringing SRP Colors to OI.
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.
...
| Service | Description | Version Added | ||
|---|---|---|---|---|
| OIToHex | Formats an OI color to '#rrggbb' format | Error | Returns the last error that occurred when using SRP_Regex. | 2.2.17 |
| 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 | ||
| SRPStringToHex | Interprets an SRP Color and returns it in '#rrggbb' format | Search | Finds the first pattern match in a string. | 2.2.317 |
| SRPStringToOI | Interprets an SRP Color and returns it as an OI color | SearchAll | Finds all pattern matches in a string. | 2.2.317 |