RegEx Match One

The RegEx Match One Flowgear Evaluator enables you to match and return the first occurrence of the specified Regular Expression pattern in an expression.

Properties

Input

Type: Multiline Text Input
The Expression to evaluate

Pattern

Type: String Input
The Regular Expression Pattern

Match

Type: String Output
The first match of the specified pattern

IsMatch

Type: Boolean Output
Set to True if a match was found, otherwise False

Examples

This example illustrates how a Regular Expression matches the first instance of a percentage sign enclosed in square brackets.

Input: hello world [2] [200] [8] [%1c] [d]
Pattern: \[(%\w+)\]
Match: [%1c]
IsMatch: True

See Also

RegEx Matcher