I have e.g. the following table data:
id | text
--------------------------------------------------------------------------------
1 | Peter ([email protected]) and Marta ([email protected]) are doing fine.
2 | Nothing special here
3 | Another email address ([email protected])
Now I need a select that returns all email addresses from my text columns (its okay to just check for the parentheses), and that returns more than one row if there are multiple addresses in the text column. I know how to extract the first element, but am totally clueless about how to find the second and more results.