{"id":5744866,"date":"2015-02-03T09:10:28","date_gmt":"2015-02-03T09:10:28","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/regex-expression\/"},"modified":"2016-08-22T16:07:14","modified_gmt":"2016-08-22T16:07:14","slug":"regex-expression","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/regex-expression\/","title":{"rendered":"Regex expression"},"content":{"rendered":"<p>Hello!<\/p>\n<p>I would like to use the php add_rewrite_rule function, but is very difficult for me getting the regex expression.<\/p>\n<p>This are some examples of the regular expressions I&#8217;m trying to get:<\/p>\n<p>compare-nikon-d500-with-canon-eos-1200d  &#8211;&gt; compare\/?c1=nikon-d500&amp;c2=canon-eos-1200d<\/p>\n<p>compare-panasonic-lumix-dmc-50-with-sony-a500 &#8211;&gt; compare\/?c1=panasonic-lumix-dmc-50&amp;c2=sony-a500<\/p>\n<p>Please, can you help me?<\/p>\n<p>Thanks and sorry about my english<\/p>\n","protected":false},"template":"","class_list":["post-5744866","topic","type-topic","status-closed","hentry","topic-tag-regex"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5744866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5744866\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5744866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}