TOP! Thanks! -----Original Message----- Cc: bug-mailfromd Subject: Re: regex applied to variable Marc Roos <M.Roos@xxxxxxxxxxxxxxxxx> ha escrit: > Did you have an efficient loop to generate this: loop while d matches '[^.]+\.(.*)' do set d \1 # Do with d what you like to do done Best regards, Sergey