Thanks Rui for your help. Could you also explain the underlying logic please? Thanks and regards, On Sat, Jan 19, 2013 at 2:43 AM, Rui Barradas <ruipbarradas at sapo.pt> wrote: > gsub("[[:alpha:]_]*(.*)", "\\1", Text)