Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

This function returns a text list with all substrings matching the given regular expression.

Evaluation of the regular expression is carried out ignoring the case.


Code Block
languagebash
titleSyntax
linenumberstrue
findPatternIgnoreCase(text, regex) #Output: Text list


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
%{findPatternIgnoreCase("Grass is Green and Sky is Blue.", "red|green|blue")}


This example returns:  

Green,Blue



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
text

Status
subtletrue
titletext

Any given text.
regex

Status
subtletrue
titletext

A valid regular expression that grabs all substrings to be returned.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext list


UI Text Box
typetip

If you don't want to ignore the case, have a look at the findPattern() function.

Parser expressionOutput


Code Block
languagebash
linenumberstrue
findPatternIgnoreCase("Grass is Green and Sky is Blue.", "red|green|blue")


["Green", "Blue"]


Code Block
languagebash
linenumberstrue
findPattern("Grass is Green and Sky is Blue.", "red|green|blue")


[ ]




Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_findpatternignorecase" and space = currentSpace()


Page properties
hiddentrue


Short description

Returns all substrings matching a given regular expression, ignoring the case.

Output

Status
subtletrue
titletext list