Don’t fear the regex.
Something like this is desperately needed as a standard interface element on iPad, and I think could work on iPhone too.