Regex Find Matches List

BlockRegex

Find matches of a regular expression in a string.

Returns the first 20 matches. For more, use Regex Find Matches Iterator.

Inputs

RegexRequired

Regular expression to search with.

Example: (\\w+)

TextRequired

Text to search through.

Example: foo bar baz

Outputs

Match 1

Matched text.

Example: foo

Match 2

Matched text.

Example: foo

Match 3

Matched text.

Example: foo

Match 4

Matched text.

Example: foo

Match 5

Matched text.

Example: foo

Match 6

Matched text.

Example: foo

Match 7

Matched text.

Example: foo

Match 8

Matched text.

Example: foo

Match 9

Matched text.

Example: foo

Match 10

Matched text.

Example: foo

Match 11

Matched text.

Example: foo

Match 12

Matched text.

Example: foo

Match 13

Matched text.

Example: foo

Match 14

Matched text.

Example: foo

Match 15

Matched text.

Example: foo

Match 16

Matched text.

Example: foo

Match 17

Matched text.

Example: foo

Match 18

Matched text.

Example: foo

Match 19

Matched text.

Example: foo

Match 20

Matched text.

Example: foo

Build a bot using blocks like Regex Find Matches List

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_find_list

Inputs

FieldInventScript nameValue
Regexregexe.g. "(\\\\w+)"
Texttexte.g. "foo bar baz"

Outputs

FieldInventScript nameValue
Match 1match_1e.g. "foo"
Match 2match_2e.g. "foo"
Match 3match_3e.g. "foo"
Match 4match_4e.g. "foo"
Match 5match_5e.g. "foo"
Match 6match_6e.g. "foo"
Match 7match_7e.g. "foo"
Match 8match_8e.g. "foo"
Match 9match_9e.g. "foo"
Match 10match_10e.g. "foo"
Match 11match_11e.g. "foo"
Match 12match_12e.g. "foo"
Match 13match_13e.g. "foo"
Match 14match_14e.g. "foo"
Match 15match_15e.g. "foo"
Match 16match_16e.g. "foo"
Match 17match_17e.g. "foo"
Match 18match_18e.g. "foo"
Match 19match_19e.g. "foo"
Match 20match_20e.g. "foo"

Example InventScript

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,
})

More regex blocks