For rerolling of groups your choices are limited.  You can add a roll button to run the macro again quickly but manually  Or you can take a statistical approach such that you only roll one die that can be rerolled; but that has to be re-calculated for each dice set.  A macro that is equivalent to 4d6 rerolling sums of 4's and 5's would be  [[3 + {1,2,6,16,36,71,127,207,311,436,576,722,862,987,1091,1171,1227,1262,1282,1292,1296}<[[1d1296r<5]] ]]  Or to reroll 4's, 5's, and 6's would be  [[3 + {1,2,6,16,36,71,127,207,311,436,576,722,862,987,1091,1171,1227,1262,1282,1292,1296}<[[1d1296r<15]] ]]  The numbers are based on the amount of permutations for each possible sum     There is an  open suggestion for a custom dice syntax  that would allow the kind of group rerolling you're looking for so considering voting and adding your voice to it.