{"id":882,"date":"2017-11-15T10:09:01","date_gmt":"2017-11-15T09:09:01","guid":{"rendered":"https:\/\/rosetta.vn\/short\/?p=882"},"modified":"2017-11-15T10:12:03","modified_gmt":"2017-11-15T09:12:03","slug":"online-regex-tester-and-debugger-php-pcre-python-golang-and-javascript","status":"publish","type":"post","link":"https:\/\/rosetta.vn\/short\/2017\/11\/15\/online-regex-tester-and-debugger-php-pcre-python-golang-and-javascript\/","title":{"rendered":"Online regex tester and debugger: PHP, PCRE, Python, Golang and JavaScript"},"content":{"rendered":"<p>Checking regex rules and see immediate result, with nice interface and explanations.<\/p>\n<p>My regex with Python:<\/p>\n<p>(?=[a-zA-Z_]+)\\b[a-zA-Z1-9_]+\\.<\/p>\n<p>Look at the following example, my aim is to find the part &#8220;OC_2.&#8221; to remove it with re.sub(), but still leave &#8220;1.&#8221; because it belongs to a number:<\/p>\n<p>OC_2.Ccold = 1.005 * OC_2.m_dot_air;<\/p>\n<p>Source: <em><a href=\"https:\/\/regex101.com\/r\/gF8kU7\/15\">Online regex tester and debugger: PHP, PCRE, Python, Golang and JavaScript<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Checking regex rules and see immediate result, with nice interface and explanations. My regex with Python: (?=[a-zA-Z_]+)\\b[a-zA-Z1-9_]+\\. Look at the following example, my aim is to find the part &#8220;OC_2.&#8221; to remove it with re.sub(), but still leave &#8220;1.&#8221; because<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[30,215],"tags":[222,652],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p8jhJx-ee","_links":{"self":[{"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/posts\/882"}],"collection":[{"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/comments?post=882"}],"version-history":[{"count":0,"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/posts\/882\/revisions"}],"wp:attachment":[{"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/media?parent=882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/categories?post=882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rosetta.vn\/short\/wp-json\/wp\/v2\/tags?post=882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}