# Functoid - RegularExpression

## RegularExpression Functoid

Description: The regular expression Functoid is used to compare the content of two fields or to perfom a pattern matching operation on the content of a particular field. Inputs with their allowed values:
• ParamA
• Literal text entered manually
• Output of another Functoid
• Value of a Table
• Operator
• There are to many options to mention all valid regular expression options but a few will be described later on this page
• ParamB
• Literal text entered manually
• Output of another Functoid
• Value of a Table
• Then
• Literal text entered manually
• Output of another Functoid
• Value of a Table
• Else
• Literal text entered manually
• Output of another Functoid
• Value of a Table Picture of the RegularExpression Functoid

Remark: ParamB will only contain values when it is used for comparison of two fields and not for a regular expression. To deselect ParamB click on the paper click of ParamB and select ok. Example and info: Functoid used for field comparison or for regular expressions The regular expression Functoid is used for comparison of two fields when ParamA and ParamB are both connected to a field. The Functoid is used to perform a pattern matching operation when ParamA is connected to a field and ParamB is set to an empty or Null value. A lot of information about regular expressions can be found on the internet like the site: www.regular-expressions.info for example. Hereafter you will find the use of the regurlar expression Functoid and some examples. Operator values when used to compare two fields 1) Compare two fields containing text Valid operators == (equal) != (not equal) > (bigger than) < (smaller than) Functoid used for field comparison on non numerical data Operator values when used to compare two fields containing alpha numerical and or numerical characters Compare two fields containing text Valid operators == (equal) != (not equal) > (bigger than) < (smaller than)

Example 1:
• ParamA
• ParamA > abcd
• Operator
• ==
• ParamB
• ParamA > abcd
• Then
• True
• Else
• False
• Output
• True
See Figure 1. Figure 1

Example 2:
• ParamA
• ParamA > abcd
• Operator
• !=
• ParamB
• ParamA > abcd
• Then
• True
• Else
• False
• Output
• False
See Figure 2. Figure 2

More information on regular expressions itself can be found on several websites.