Absolutely, it is very very limited. So this technique is only suited to the type of regex's that I quoted, like the one used internally by jquery to test for body or html tags only, or to test for t(able|d|h) only. Particulalry when used inside a loop. For parsing a selector we still need regex.
On Feb 3, 3:16 pm, Eric Garside <gars...@gmail.com> wrote: > Using a hash I can see for some situations, but unless you can figure > out a way (and I'd be super interested if you could) to do complex > cascade parsing without regex, your method seems like double the work > of rewriting with no benefits towards maintainability and a minor > speed increase for only certain tags.