$re = '/Rendimento no valor de R\$\s(\d?,?\d+|)\s/m';
$str = 'Rendimento no valor de R$ 0,35 por cota no dia 16/11/2020
Rendimento no valor de R$ 0,07 por cota no dia 15/10/2020
Rendimento no valor de R$ 2,50 por cota no dia 15/10/2020
Rendimento no valor de R$ 5 por cota no dia 15/10/2020
';
preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0);
// Print the entire match result
var_dump($matches);
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for PHP, please visit: http://php.net/manual/en/ref.pcre.php