regexFind := regex_find_list(Args{regex: "(\\\\w+)", text: "foo bar baz"})
send_text_message(Args{
channel_id: trigger.channel_id,
message_content: "Match 1: " + regexFind.match_1,
})
Regex Find Matches List
Find matches of a regular expression in a string.
Inputs
Regular expression to search with.
Example: (\\w+)
Text to search through.
Example: foo bar baz
Outputs
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
Matched text.
Example: foo
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
regex_find_listInputs
| Field | InventScript name | Value |
|---|---|---|
| Regex | regex | e.g. "(\\\\w+)" |
| Text | text | e.g. "foo bar baz" |
Outputs
| Field | InventScript name | Value |
|---|---|---|
| Match 1 | match_1 | e.g. "foo" |
| Match 2 | match_2 | e.g. "foo" |
| Match 3 | match_3 | e.g. "foo" |
| Match 4 | match_4 | e.g. "foo" |
| Match 5 | match_5 | e.g. "foo" |
| Match 6 | match_6 | e.g. "foo" |
| Match 7 | match_7 | e.g. "foo" |
| Match 8 | match_8 | e.g. "foo" |
| Match 9 | match_9 | e.g. "foo" |
| Match 10 | match_10 | e.g. "foo" |
| Match 11 | match_11 | e.g. "foo" |
| Match 12 | match_12 | e.g. "foo" |
| Match 13 | match_13 | e.g. "foo" |
| Match 14 | match_14 | e.g. "foo" |
| Match 15 | match_15 | e.g. "foo" |
| Match 16 | match_16 | e.g. "foo" |
| Match 17 | match_17 | e.g. "foo" |
| Match 18 | match_18 | e.g. "foo" |
| Match 19 | match_19 | e.g. "foo" |
| Match 20 | match_20 | e.g. "foo" |