Page History
SRP_Regex Color provides services to easily parse or pattern match strings in OpenInsightfor bringing the Color technology widely used in our SRP ActiveX Controls to OpenInsight. This allows you to use named colors and adjust those colors by certain attributes such as luminance.
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 |