'easy' and 'simple' are relative, and personally I think a while loop is more quickly learned than regex :p
I might be wrong though, it's all relative after all.. ;_)