Versions Compared

Key

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


Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged




Page properties
hiddentrue


Short description

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

Output

Status
subtletrue
titletext list




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 expressionValueOutput


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")


[ ]