If he is looking for the quicker way. Would a regex really be the best solution?
If he's looking for the quickest way to that thing, then he's most probably micro-optimizing, which is most probably not good. But AIUI he's rather searching for a slightly less clumsy solution than his own.