I want to prepare a script to analyze some log file in bash.
Lines in the file look like: ... Error(...), Error(...)...
I wanted to do something like:
if [[ $line =~ $regex ]]
to iterate over multiple matches but I cannot find the way to do so.
Any ideas?
PS: ${BASH_REMATCH[1]} is not a solution since it contains group match information, not the matches itself.