regexMatch := regex_match(Args{regex: "^hello", text: "hello world"})
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Match: " + regexMatch.match,
})
Inputs
RegexRequired
Regular expression to evaluate.
Example: ^hello
TextRequired
Text to test against the regex.
Example: hello world
Outputs
Match
Whether the text matches the regex.
Example: true
Build a bot using blocks like Regex Match
Use this block in our visual flow editor. Bots are hosted 24/7 for free on inventor.bot.
Advanced Documentation
This documentation can be useful when using code mode. View as Markdown
ID:
regex_matchInputs
| Field | InventScript name | Value |
|---|---|---|
| Regex | regex | e.g. "^hello" |
| Text | text | e.g. "hello world" |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Match | match | e.g. "true" |