Ada has had something similar and very flexible since from the 80s ... like:
loop
Get(Current_Character);
exit when Current_Character = '*';
Echo(Current_Character);
end loop;
There's not that much new under the prog lang sun :(