Given this string:
SET @text = "<a href=""https://salesforce.stackexchange.com""target=""_blank"">Salesforce</a>
<a href=""https://stackoverflow.com"" target=""_blank"">Everything else</a>"
And this function:
SET @matching = '\s+(?:[^>]*?\s+)?href="([^"]*)"'
SET @output = RegExMatch(@text, @matching, 1)
How can I manage to find and print an arbitrary number of matches in my string? E.g. in above example, I would like to present e.g. a rowset with each URL in each row.
</a>
s and iterate through the number of with multiple regexmatches with looping (variable i). RegExMatch(@text, @matching, @i)Set @text = '<a href="https://salesforce.stackexchange.com" target="_blank"> ... '
i would nearly think that your code is wrong ;)