I want to extract text followed with parentheses of multiple one in one String.
Example:
text(text1) password(password1) in table(table_name) with some random text
So, i want extract each of them in table like this:
COL1 COL2
-------------------
text text1
password password1
table table_name
So in table i mean just the possiblity to use them and call them when needed.
What i have tried:
This regex allow me only to extract the first parenthese but without "text" included and is not what i want:
"text(text1) password(password1) in table(table_name) with some random text".match(/\(([^)]+)\)/)[1]
return:
text1
I want "text" will be included in regex like explained in the example in the top of this post.
Thank's in advance.