RegEx in PHP: match several links in one line of text

I would like to match url with specific text from long line of text. But the problem is that there can be several links in that line. Sample text:

AAAAAA <a href="https://BBB.com">TEST1</a> CCC <a href="https://DDD.com/EEE-FFF/">GGGG</a> AAAAAA

And I would like to match link with “EEE-FFF” to delete this url later by preg_replace, so my goal is to get:

AAAAAA <a href="https://BBB.com">TEST1</a> CCC GGGG AAAAAA

I tried something like this:

/<a.*?EEE-FFF.*?>(.*?)</a>/U

But it match two links as a one. How can I fix it?