AFAIK QRegexp is the fastest and simplest way for this purpose..