Oh, I guess that's still regexps. Well, I'll leave the question open - but I cannot abide any more low-level code like this.