{"id":41145,"date":"2021-03-12T23:39:39","date_gmt":"2021-03-12T23:39:39","guid":{"rendered":"https:\/\/www.oracletutoring.ca\/blog\/?p=41145"},"modified":"2021-03-12T23:39:41","modified_gmt":"2021-03-12T23:39:41","slug":"perl-regex-horizontal-space","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/perl-regex-horizontal-space\/","title":{"rendered":"Perl regex: horizontal space"},"content":{"rendered":"\n<h2>Self-tutoring about Perl regular expressions: the tutor makes an observation.<\/h2>\n<p>\nPerl has the interesting character class \\h that signifies &#8220;horizontal whitespace.&#8221; It can be very useful to capture a word in a sentence.<\/p>\n<p>Suppose, for instance, you want to capture <span style=\"font-family:monospace\">Hello76<\/span> from the following sentence:<\/p>\n<p>On the brick wall old graffiti told this message: Jimmy Carter Hello76 Good Luck.<\/p>\n\/\\h\\w*76\/ should work:)\n<\/p>\n<p>Source:<\/p>\n<p><a href=\"https:\/\/perldoc.perl.org\/perlrecharclass\">perldoc.org<\/a><\/p>\n<p><a href=\"http:\/\/web.archive.org\/web\/20020402212441\/http:\/\/www.netcat.co.uk\/rob\/perl\/win32perltut.html#83-ReturningtheMatch\">Robert&#8217;s Perl Tutorial<\/a><\/p>\nJack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.\n","protected":false},"excerpt":{"rendered":"<p>Self-tutoring about Perl regular expressions: the tutor makes an observation. Perl has the interesting character class \\h that signifies &#8220;horizontal whitespace.&#8221; It can be very useful to capture a word in a sentence. Suppose, for instance, you want to capture &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/perl-regex-horizontal-space\/\"> <span class=\"screen-reader-text\">Perl regex: horizontal space<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2943],"tags":[],"class_list":["post-41145","post","type-post","status-publish","format-standard","hentry","category-perl"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/41145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=41145"}],"version-history":[{"count":5,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/41145\/revisions"}],"predecessor-version":[{"id":41150,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/41145\/revisions\/41150"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=41145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=41145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=41145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}