{"id":356,"date":"2023-11-21T15:29:49","date_gmt":"2023-11-21T20:29:49","guid":{"rendered":"https:\/\/pressbooks.bccampus.ca\/hfriedman\/?post_type=chapter&#038;p=356"},"modified":"2024-01-09T17:32:46","modified_gmt":"2024-01-09T22:32:46","slug":"regex-testing","status":"web-only","type":"chapter","link":"https:\/\/pressbooks.bccampus.ca\/hfriedman\/chapter\/regex-testing\/","title":{"raw":"Regex testing","rendered":"Regex testing"},"content":{"raw":"<a href=\"https:\/\/bccampusca.sharepoint.com\/:w:\/s\/HarpersWorkspace\/EXdZiOfLjodHkNuhGrh1yx0BZ9dbH7NdQlRB0MSrctTeXA?e=lIqs5Z\">Regex instructions document<\/a>\r\n\r\n<strong><span class=\"TextRun SCXW2260837 BCX0\" lang=\"EN-GB\" xml:lang=\"EN-GB\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW2260837 BCX0\">Regex (<\/span><span class=\"NormalTextRun SCXW2260837 BCX0\">regular<\/span><span class=\"NormalTextRun SCXW2260837 BCX0\"> expression): <\/span><\/span><\/strong><span class=\"TextRun MacChromeBold SCXW2260837 BCX0\" lang=\"EN-GB\" xml:lang=\"EN-GB\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW2260837 BCX0\">\/(^|\\<\/span><span class=\"NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW2260837 BCX0\">s)(<\/span><span class=\"NormalTextRun SCXW2260837 BCX0\">\\<\/span><span class=\"NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW2260837 BCX0\">d{<\/span><span class=\"NormalTextRun SCXW2260837 BCX0\">1,3<\/span><span class=\"NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW2260837 BCX0\">},*<\/span><span class=\"NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW2260837 BCX0\">){<\/span><span class=\"NormalTextRun SCXW2260837 BCX0\">4<\/span><span class=\"NormalTextRun SCXW2260837 BCX0\">,}\/<\/span><\/span><span class=\"EOP SCXW2260837 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span>\r\n<h1>Should match<\/h1>\r\n<ul>\r\n \t<li>For appliance(s) with draft control the area of the air supply shall be at least 1 in.<sup>2<\/sup> for every 7000 Btu\u2019s of input up to and including 1000000 Btu\u2019s, plus 1 in.<sup>2<\/sup> for every 14000 Btu\u2019s in excess of 1000000 Btu\u2019s. For metric calculations use; 310 mm<sup>2<\/sup> for every kW up to and including 293 kW plus 155 mm<sup>2<\/sup> for every kW in excess of 293 kW).<\/li>\r\n \t<li>1000<\/li>\r\n<\/ul>\r\n1,000 then match 8,000,000\r\n<ol>\r\n \t<li>1000\r\n<ol type=\"a\">\r\n \t<li>38,866<\/li>\r\n<\/ol>\r\n<\/li>\r\n<\/ol>\r\n<h1>Should NOT match<\/h1>\r\n<img class=\"alignnone size-medium wp-image-335\" src=\"https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-content\/uploads\/sites\/998\/2023\/11\/image32-300x225.jpeg\" alt=\"\" width=\"300\" height=\"225\" \/>\r\n\r\n1\r\n\r\n98\r\n\r\n346\r\n<ol>\r\n \t<li>21<\/li>\r\n \t<li>09<\/li>\r\n<\/ol>\r\n<ul>\r\n \t<li>236<\/li>\r\n \t<li>src=\"https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-content\/uploads\/sites\/998\/2023\/11\/image32-300x225.jpeg\"<\/li>\r\n<\/ul>\r\n\/1000\/24,000\/24589","rendered":"<p><a href=\"https:\/\/bccampusca.sharepoint.com\/:w:\/s\/HarpersWorkspace\/EXdZiOfLjodHkNuhGrh1yx0BZ9dbH7NdQlRB0MSrctTeXA?e=lIqs5Z\">Regex instructions document<\/a><\/p>\n<p><strong><span class=\"TextRun SCXW2260837 BCX0\" lang=\"EN-GB\" xml:lang=\"EN-GB\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW2260837 BCX0\">Regex (<\/span><span class=\"NormalTextRun SCXW2260837 BCX0\">regular<\/span><span class=\"NormalTextRun SCXW2260837 BCX0\"> expression): <\/span><\/span><\/strong><span class=\"TextRun MacChromeBold SCXW2260837 BCX0\" lang=\"EN-GB\" xml:lang=\"EN-GB\" data-contrast=\"auto\"><span class=\"NormalTextRun SCXW2260837 BCX0\">\/(^|\\<\/span><span class=\"NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW2260837 BCX0\">s)(<\/span><span class=\"NormalTextRun SCXW2260837 BCX0\">\\<\/span><span class=\"NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW2260837 BCX0\">d{<\/span><span class=\"NormalTextRun SCXW2260837 BCX0\">1,3<\/span><span class=\"NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW2260837 BCX0\">},*<\/span><span class=\"NormalTextRun ContextualSpellingAndGrammarErrorV2Themed SCXW2260837 BCX0\">){<\/span><span class=\"NormalTextRun SCXW2260837 BCX0\">4<\/span><span class=\"NormalTextRun SCXW2260837 BCX0\">,}\/<\/span><\/span><span class=\"EOP SCXW2260837 BCX0\" data-ccp-props=\"{&quot;201341983&quot;:0,&quot;335559739&quot;:160,&quot;335559740&quot;:259}\">\u00a0<\/span><\/p>\n<h1>Should match<\/h1>\n<ul>\n<li>For appliance(s) with draft control the area of the air supply shall be at least 1 in.<sup>2<\/sup> for every 7000 Btu\u2019s of input up to and including 1000000 Btu\u2019s, plus 1 in.<sup>2<\/sup> for every 14000 Btu\u2019s in excess of 1000000 Btu\u2019s. For metric calculations use; 310 mm<sup>2<\/sup> for every kW up to and including 293 kW plus 155 mm<sup>2<\/sup> for every kW in excess of 293 kW).<\/li>\n<li>1000<\/li>\n<\/ul>\n<p>1,000 then match 8,000,000<\/p>\n<ol>\n<li>1000\n<ol type=\"a\">\n<li>38,866<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<h1>Should NOT match<\/h1>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-335\" src=\"https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-content\/uploads\/sites\/998\/2023\/11\/image32-300x225.jpeg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-content\/uploads\/sites\/998\/2023\/11\/image32-300x225.jpeg 300w, https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-content\/uploads\/sites\/998\/2023\/11\/image32-768x576.jpeg 768w, https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-content\/uploads\/sites\/998\/2023\/11\/image32-65x49.jpeg 65w, https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-content\/uploads\/sites\/998\/2023\/11\/image32-225x169.jpeg 225w, https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-content\/uploads\/sites\/998\/2023\/11\/image32-350x263.jpeg 350w, https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-content\/uploads\/sites\/998\/2023\/11\/image32.jpeg 809w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>1<\/p>\n<p>98<\/p>\n<p>346<\/p>\n<ol>\n<li>21<\/li>\n<li>09<\/li>\n<\/ol>\n<ul>\n<li>236<\/li>\n<li>src=&#8221;https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-content\/uploads\/sites\/998\/2023\/11\/image32-300&#215;225.jpeg&#8221;<\/li>\n<\/ul>\n<p>\/1000\/24,000\/24589<\/p>\n","protected":false},"author":940,"menu_order":14,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-356","chapter","type-chapter","status-web-only","hentry"],"part":103,"_links":{"self":[{"href":"https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-json\/pressbooks\/v2\/chapters\/356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-json\/wp\/v2\/users\/940"}],"version-history":[{"count":2,"href":"https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-json\/pressbooks\/v2\/chapters\/356\/revisions"}],"predecessor-version":[{"id":358,"href":"https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-json\/pressbooks\/v2\/chapters\/356\/revisions\/358"}],"part":[{"href":"https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-json\/pressbooks\/v2\/parts\/103"}],"metadata":[{"href":"https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-json\/pressbooks\/v2\/chapters\/356\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-json\/wp\/v2\/media?parent=356"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-json\/pressbooks\/v2\/chapter-type?post=356"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-json\/wp\/v2\/contributor?post=356"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.bccampus.ca\/hfriedman\/wp-json\/wp\/v2\/license?post=356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}