{"id":7705,"date":"2004-07-22T20:45:36","date_gmt":"2004-07-22T18:45:36","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/2004\/07\/22\/regular-expressions\/"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T22:00:00","slug":"regular-expressions","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2004\/07\/22\/regular-expressions\/","title":{"rendered":"Regular expressions"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>\t<img decoding=\"async\" class=\"alignleft\" src=\"\/wordpress\/wp-content\/20040722-regular_expressions_logo.gif\" alt=\"\"><\/p>\n<p><a href=\"http:\/\/www.regular-expressions.info\/\">Regular-Expressions.Info<\/a> is a very good resource on &#8230; eh, well &#8230; regular expressions.  There is a nicely done tutorial, lots of examples, a reference page, and  page with a list of tools and libraries that support regular expressions.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>Regular-Expressions.Info is a very good resource on &#8230; eh, well &#8230; regular expressions. There is a nicely done tutorial, lots of examples, a reference page, and page with a list of tools and libraries that support regular expressions.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,62],"tags":[],"keyring_services":[],"class_list":["post-7705","post","type-post","status-publish","format-standard","hentry","category-general","category-technology"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":27707,"url":"https:\/\/mamchenkov.net\/wordpress\/2017\/06\/20\/regex101-online-regex-editor-and-debugger\/","url_meta":{"origin":7705,"position":0},"title":"Regex101 &#8211; online regex editor and debugger","author":"Leonid Mamchenkov","date":"June 20, 2017","format":false,"excerpt":"Regex101 is an online regular expression editor and debugger. \u00a0You can test your regular expressions against sample data, see if the expression worked, watch it matched, and so on. \u00a0Having an explanation for each part of the regular expression dynamically generated, and a quick reference nearby is super handy too.\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2017\/06\/regex101-500x250.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":9930,"url":"https:\/\/mamchenkov.net\/wordpress\/2006\/02\/22\/regexp-reminder\/","url_meta":{"origin":7705,"position":1},"title":"RegExp reminder","author":"Leonid Mamchenkov","date":"February 22, 2006","format":false,"excerpt":"I was just reminded about this small thing, which is so easy to forget - regular expressions that have markers of line start (^) and\/or line end($) are so much faster than those regexps that don't have these markers. The thing is that with line start\/end marker regexp engine needs\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16932,"url":"https:\/\/mamchenkov.net\/wordpress\/2012\/11\/22\/my-favorite-regex-of-all-time\/","url_meta":{"origin":7705,"position":2},"title":"My favorite regex of all time","author":"Leonid Mamchenkov","date":"November 22, 2012","format":"link","excerpt":"My favorite regex of all time Make sure to read through comments. \u00a0Funny stuff, if you know even the basics of the regular expressions.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":18912,"url":"https:\/\/mamchenkov.net\/wordpress\/2013\/12\/04\/yesterdays-regexp\/","url_meta":{"origin":7705,"position":3},"title":"Yesterday&#8217;s regexp","author":"Leonid Mamchenkov","date":"December 4, 2013","format":"image","excerpt":"From the Geek & Poke of course.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2013\/12\/yesterdays-regex.jpg?fit=500%2C708&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":27259,"url":"https:\/\/mamchenkov.net\/wordpress\/2017\/01\/20\/parsing-text-printouts-within-ansible-playbooks\/","url_meta":{"origin":7705,"position":4},"title":"Parsing text printouts within Ansible playbooks","author":"Leonid Mamchenkov","date":"January 20, 2017","format":false,"excerpt":"I'm sure this will come handy soon, and I'll be spending too much time trying to figure it out without this article:\u00a0Parsing text printouts within Ansible playbooks. It's not every day that you see regular expression examples in the Ansible playbooks...","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":23988,"url":"https:\/\/mamchenkov.net\/wordpress\/2015\/04\/24\/mailrfc822address-regexp-based-address-validation\/","url_meta":{"origin":7705,"position":5},"title":"Mail::RFC822::Address: regexp-based address validation","author":"Leonid Mamchenkov","date":"April 24, 2015","format":"link","excerpt":"This is pure gold! \u00a0Check out the regular expression for an RFC822 email address validation. I'm not going to paste it here, being concerned that it will open the gates of hell or something, but here is a sneak preview of about the first third or so.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"regex","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2015\/04\/regex-500x298.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/7705","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=7705"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/7705\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=7705"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=7705"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=7705"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=7705"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}