{"id":492,"date":"2012-02-27T20:45:34","date_gmt":"2012-02-28T04:45:34","guid":{"rendered":"http:\/\/thelawlers.com\/Blognosticator\/?p=492"},"modified":"2012-02-27T20:45:34","modified_gmt":"2012-02-28T04:45:34","slug":"grep-was-staring-me-in-the-eye","status":"publish","type":"post","link":"https:\/\/thelawlers.com\/Blognosticator\/?p=492","title":{"rendered":"GREP was staring me in the eye"},"content":{"rendered":"<p><a href=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2011\/08\/Blognosticator-Head.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-25\" title=\"Blognosticator Head\" src=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2011\/08\/Blognosticator-Head.png\" alt=\"\" width=\"252\" height=\"115\" \/><\/a><\/p>\n<p>I was sitting here looking at the search string I posted in yesterday\u2019s blog, and realized that the solution to my problem was staring me in the eye.<\/p>\n<p>The string I posted yesterday was for forcing ALL CAPS into lower-case. It was a solution that included <em>not converting <\/em>Roman Numerals. I don\u2019t really need the Roman Numerals feature, I just need the ability to change normal strings of capitalized text into lower-case, and I don\u2019t want my search string to include articles like A and I. Compound-words, words followed by periods, commas, hyphens, semicolons, and colons also need to be converted.<\/p>\n<p>The secret is in the braces part of the string: {2,} which translates into <em>find at least two capital letters. <\/em>That solves the problem if I tag it on the end of a search string that searches for the capital letters of the alphabet [A-Z].<\/p>\n<p>The search string that solves my problem is:<\/p>\n<p><a href=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2012\/02\/Simpler-GREP-string.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-493\" title=\"Simpler GREP string\" src=\"https:\/\/thelawlers.com\/Blognosticator\/wp-content\/uploads\/2012\/02\/Simpler-GREP-string.png\" alt=\"\" width=\"139\" height=\"236\" \/><\/a><\/p>\n<p>This, combined with the Javascript I licensed a couple of weeks back, provides a solution that I like. I can now stop obsessing over this particular GREPping drama.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was sitting here looking at the search string I posted in yesterday\u2019s blog, and realized that the solution to my problem was staring me in the eye. The string I posted yesterday was for forcing ALL CAPS into lower-case. &hellip; <a href=\"https:\/\/thelawlers.com\/Blognosticator\/?p=492\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-492","post","type-post","status-publish","format-standard","hentry","category-imposition-and-pagination"],"_links":{"self":[{"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/posts\/492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=492"}],"version-history":[{"count":1,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/posts\/492\/revisions"}],"predecessor-version":[{"id":494,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=\/wp\/v2\/posts\/492\/revisions\/494"}],"wp:attachment":[{"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thelawlers.com\/Blognosticator\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}