Match to regular expression
Logic name
Match to regular expression
Function
This logic determines whether the input string matches the specified regular expression.
Data type
|
Location |
Type |
|---|---|
|
First input handler |
String |
|
Logic output |
Boolean |
Property
|
Category |
Property |
Description |
|---|---|---|
|
Required |
Regular expression pattern |
Specify the regular expression pattern. |
|
Comment |
Comment |
It does not affect the conversion processing. |
Function details
Regular expression pattern
The usable regular expression pattern is in accordance with regexp/syntax.
For the pattern, refer to Package syntax in The Go Programming Language.
Example of logic use
Mapping definition
Logic settings and processing result
This logic outputs "true" if the input data is either "Tokyo" or "Osaka". If it is not, it outputs "false".
Property settings
|
Property |
Setting Value |
|---|---|
|
Regular expression pattern |
Tokyo|Osaka |
Input data
|
Tokyo |
|
Aichi |
|
Osaka |
Output data
|
true |
|
false |
|
true |