get all occurences of regex without selecting all text