Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.

...

ServiceDescriptionVersion Added
OIToHexFormats an OI color to '#rrggbb' formatErrorReturns the last error that occurred when using SRP_Regex.2.2.17
ExtractExtracts the first pattern match from a string.2.2.3
ExtractAllExtracts all pattern matches from a string.2.2.3
MatchDetermines if the entire string matches the given pattern.2.2.3
SRPStringToHexInterprets an SRP Color and returns it in '#rrggbb' formatSearchFinds the first pattern match in a string.2.2.317
SRPStringToOIInterprets an SRP Color and returns it as an OI colorSearchAllFinds all pattern matches in a string.2.2.317