Versions Compared

Key

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

Extracts all pattern matches from a stringInterprets an SRP Color and returns it as an OI color.

Code Block
ResultColor = SRP_RegexColor("ExtractAllSRPStringToOI", String, Pattern)

Returns

An @FM delimited list of all matches, if found, or "" if no matches are foundOI color suitable for use in color based properties.

Parameters

The regex pattern
ParameterDescription
StringThe target string to be pattern matched. (REQUIRED)Pattern SRP Color String to interpret. (REQUIRED)

Remarks

The ExtractAll service is a simplified version of the SearchAll service. Instead of returning a structure of information, this service simply returns an @FM delimited list of matched strings. This is useful when you are using regex to parse out information.SRPStringToOI service interprets our Color technology that is widely used in the SRP ActiveX Controls and converts it into a Color that can be used in properties such as BACKCOLOR and FORECOLOR.

Examples

Code Block
languagebp
String ColorString   = 'Call 800-555-1212 for info, or fax us at 888-555-3535'
Pattern   = '((\d{3})(?:\.|-))?(\d{3})(?:\.|-)(\d{4})'
PhoneNums"3DFace L+=10"
Color = SRP_RegexColor("ExtractAllSRPStringToOI", String, PatternColorString)