I try to figure out how to get 2 matches from String Bla bla bla [https://google.com|Google] bla bla bla [https://youtube.com|Youtube]
I want to get 2 matches: [https://google.com|Google], [https://youtube.com|Youtube].
My regex looks likee this: \[.*\|.*\] and with it I get only one match: [https://google.com|Google] bla bla bla [https://youtube.com|Youtube] so it is wrong answer. How to get the right answer?
P.S. google and youtube - the hardcoded example. I get array of data with 1000+ entries, so I need a universal solution.