FindByPattern (PQL)

Returns a string found in another string using a complex regular expression (REGEX) pattern.

  • Returned Output: Text
  • Library: PQL \ Common \ String
  • Version: 2020.00.000
  • Compatibility:
    • Can be combined with and other PQL function throughout the application.
    • It CANNOT be used with MDX or VBA functions. But it can be used on MDX-based content in other parts of the application.

Syntax

FindByPattern( <Text> , <Pattern String> )

* Click on the function's arguments above for more details on the input values.

Comments
  • The input text string can be any alphanumeric set of characters.
  • The REGEX pattern text string is any regular expression string formulation that conforms with Java REGEX expressions.

Examples

This example uses the provided regular expression string and returns "[BAR]" from the input string "FOO[BAR]"

FindByPattern("FOO[BAR]","\[(.*?)\]")