$re = '/((:?.*):(.*\..*@.*\.com:.*))/m';
$str = 'https://template.com/x/xxxx/string:temp.late@xxxx.com:xxxx';

preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0);

// Print the entire match result
var_dump($matches);


bunu dene istersen.

KokinUHD adlı üyeden alıntı: mesajı görüntüle
Selamlar, alt satırdaki değişkenin içerisindeki temp.late@xxxx.com:xxxx adresini nasıl regex kodu ile filtreleyebilirim?

https://template.com/x/xxxx/string:t...@xxxx.com:xxxx