{"id":483,"date":"2012-05-20T13:42:16","date_gmt":"2012-05-20T20:42:16","guid":{"rendered":"http:\/\/10kdev.ivystreetinc.com\/?p=483"},"modified":"2012-11-20T13:45:33","modified_gmt":"2012-11-20T20:45:33","slug":"regex-for-testing-a-number-range","status":"publish","type":"post","link":"http:\/\/10kdev.net\/?p=483","title":{"rendered":"Regex for Testing A Number Range"},"content":{"rendered":"<p>Kinda weird, but if you are scanning a file from a build tool for coverage you can do a check by finding your value and using this reg-ex statement:<\/p>\n<p><code>2[7-9]|[3-9][0-9]|100<\/code><\/p>\n<p>This statement will check 27-100.<\/p>\n<p>Regex only does string searching but this works &#8212; I can use this in something like the Maven Verification plugin to fail my coverage.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kinda weird, but if you are scanning a file from a build tool for coverage you can do a check by finding your value and using this reg-ex statement: 2[7-9]|[3-9][0-9]|100 This statement will check 27-100. Regex only does string searching but this works &#8212; I can use this in something like the Maven Verification plugin [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/483"}],"collection":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=483"}],"version-history":[{"count":2,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/483\/revisions"}],"predecessor-version":[{"id":485,"href":"http:\/\/10kdev.net\/index.php?rest_route=\/wp\/v2\/posts\/483\/revisions\/485"}],"wp:attachment":[{"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=483"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/10kdev.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}