diff --git a/lib/zest.js b/lib/zest.js
index <HASH>..<HASH> 100644
--- a/lib/zest.js
+++ b/lib/zest.js
@@ -238,7 +238,7 @@ var selectors = {
   },
   ':nth-match': function(param) {
     var args = param.split(/\s*,\s*/)
-      , p = args.pop()
+      , p = args.shift()
       , test = compileGroup(args.join(','));
 
     return nth(p, test);
@@ -429,7 +429,7 @@ var rules = {
   combinator: /^(?: +([^ \w*]) +|( )+|([^ \w*]))(?! *$)/,
   attr: /^\[([\w-]+)(?:([^\w]?=)(inside))?\]/,
   pseudo: /^(:[\w-]+)(?:\((inside)\))?/,
-  inside: /(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|<[^"'>]*>|\\["'>]|[^"'>])+/
+  inside: /(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|\\["'>]|[^"'>])+/
   //inside: /(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|<[^"'>]*>|\\["'>]|[^"'<>]+)+/
 };
clean inside rule, fix nth-match