Hey everyone, I would like to extract URLs from some text. There might be one URL, multiple URLs or none. Also there might be https:// or just the domain.
I think I need to use the text parser module and regex, and maybe a repeater module to handle multiple links, but there are so many settings and i don’t know which regex match to use but here is my desired output:
Example input: ChatGPT by OpenAI, Desired output:
Example input: ChatGPT by OpenAI, Learn more at openai.com, Desired output: openai.com
Every result (item/record) from iterator/list/search/match modules will output a bundle. This can result in multiple bundles, which then trigger multiple operations in future modules (one operation per bundle). To “combine” multiple bundles into a single variable, you’ll need to use an aggregator of some sort.
Aggregators are modules that accumulate multiple bundles into one single bundle. An example of a commonly-used aggregator module is the Array aggregator module. The next popular aggregator is the Text Aggregator which is very flexible and can apply to many use-cases like building of JSON, CSV, HTML.
There are other types of aggregator modules, click the below links to find out more: