{"id":665,"date":"2012-05-12T09:27:49","date_gmt":"2012-05-12T09:27:49","guid":{"rendered":"http:\/\/www.withinweb.com\/info\/?p=665"},"modified":"2012-06-20T13:29:24","modified_gmt":"2012-06-20T13:29:24","slug":"some-regular-expression-matches","status":"publish","type":"post","link":"https:\/\/www.withinweb.com\/info\/some-regular-expression-matches\/","title":{"rendered":"Some regular expression matches"},"content":{"rendered":"<p>Regular Expression \u00a0\u00a0 \u00a0Will match&#8230;<\/p>\n<p>foo \u00a0\u00a0 \u00a0The string &#8220;foo&#8221;<br \/>\n^foo \u00a0\u00a0 \u00a0&#8220;foo&#8221; at the start of a string<br \/>\nfoo$ \u00a0\u00a0 \u00a0&#8220;foo&#8221; at the end of a string<br \/>\n^foo$ \u00a0\u00a0 \u00a0&#8220;foo&#8221; when it is alone on a string<br \/>\n[abc] \u00a0\u00a0 \u00a0a, b, or c<br \/>\n[a-z] \u00a0\u00a0 \u00a0Any lowercase letter<br \/>\n[^A-Z] \u00a0\u00a0 \u00a0Any character that is not a uppercase letter<br \/>\n(gif|jpg) \u00a0\u00a0 \u00a0Matches either &#8220;gif&#8221; or &#8220;jpeg&#8221;<br \/>\n[a-z]+ \u00a0\u00a0 \u00a0One or more lowercase letters<br \/>\n[0-9\\.\\-] \u00a0\u00a0 \u00a0?ny number, dot, or minus sign<br \/>\n^[a-zA-Z0-9_]{1,}$ \u00a0\u00a0 \u00a0Any word of at least one letter, number or _<br \/>\n([wx])([yz]) \u00a0\u00a0 \u00a0wy, wz, xy, or xz<br \/>\n[^A-Za-z0-9] \u00a0\u00a0 \u00a0Any symbol (not a number or a letter)<br \/>\n([A-Z]{3}|[0-9]{4}) \u00a0\u00a0 \u00a0Matches three letters or four numbers<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Regular Expression \u00a0\u00a0 \u00a0Will match&#8230; foo \u00a0\u00a0 \u00a0The string &#8220;foo&#8221; ^foo \u00a0\u00a0 \u00a0&#8220;foo&#8221; at the start of a string foo$ \u00a0\u00a0 \u00a0&#8220;foo&#8221; at the end of a string ^foo$ \u00a0\u00a0 \u00a0&#8220;foo&#8221; when it is alone on a string [abc] \u00a0\u00a0<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"https:\/\/www.withinweb.com\/info\/some-regular-expression-matches\/\">Read more <span class=\"screen-reader-text\">Some regular expression matches<\/span><span class=\"meta-nav\"> &#8250;<\/span><\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,16],"tags":[],"class_list":["post-665","post","type-post","status-publish","format-standard","hentry","category-general-php","category-reg-expressions"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Some regular expression matches - PHP Web Applications<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.withinweb.com\/info\/some-regular-expression-matches\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Some regular expression matches - PHP Web Applications\" \/>\n<meta property=\"og:description\" content=\"Regular Expression \u00a0\u00a0 \u00a0Will match&#8230; foo \u00a0\u00a0 \u00a0The string &#8220;foo&#8221; ^foo \u00a0\u00a0 \u00a0&#8220;foo&#8221; at the start of a string foo$ \u00a0\u00a0 \u00a0&#8220;foo&#8221; at the end of a string ^foo$ \u00a0\u00a0 \u00a0&#8220;foo&#8221; when it is alone on a string [abc] \u00a0\u00a0&hellip;Read more Some regular expression matches &#8250;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.withinweb.com\/info\/some-regular-expression-matches\/\" \/>\n<meta property=\"og:site_name\" content=\"PHP Web Applications\" \/>\n<meta property=\"article:published_time\" content=\"2012-05-12T09:27:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-06-20T13:29:24+00:00\" \/>\n<meta name=\"author\" content=\"paulv\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"paulv\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/some-regular-expression-matches\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/some-regular-expression-matches\\\/\"},\"author\":{\"name\":\"paulv\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\"},\"headline\":\"Some regular expression matches\",\"datePublished\":\"2012-05-12T09:27:49+00:00\",\"dateModified\":\"2012-06-20T13:29:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/some-regular-expression-matches\\\/\"},\"wordCount\":112,\"commentCount\":0,\"articleSection\":[\"General PHP\",\"Regular Expressions\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/some-regular-expression-matches\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/some-regular-expression-matches\\\/\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/some-regular-expression-matches\\\/\",\"name\":\"Some regular expression matches - PHP Web Applications\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\"},\"datePublished\":\"2012-05-12T09:27:49+00:00\",\"dateModified\":\"2012-06-20T13:29:24+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/some-regular-expression-matches\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.withinweb.com\\\/info\\\/some-regular-expression-matches\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/some-regular-expression-matches\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Some regular expression matches\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#website\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/\",\"name\":\"PHP Web Applications\",\"description\":\"Information and support for products of WithinWeb.com\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/#\\\/schema\\\/person\\\/04da5531c302d55ffcd777fe81dbb93c\",\"name\":\"paulv\",\"url\":\"https:\\\/\\\/www.withinweb.com\\\/info\\\/author\\\/paulv\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Some regular expression matches - PHP Web Applications","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.withinweb.com\/info\/some-regular-expression-matches\/","og_locale":"en_US","og_type":"article","og_title":"Some regular expression matches - PHP Web Applications","og_description":"Regular Expression \u00a0\u00a0 \u00a0Will match&#8230; foo \u00a0\u00a0 \u00a0The string &#8220;foo&#8221; ^foo \u00a0\u00a0 \u00a0&#8220;foo&#8221; at the start of a string foo$ \u00a0\u00a0 \u00a0&#8220;foo&#8221; at the end of a string ^foo$ \u00a0\u00a0 \u00a0&#8220;foo&#8221; when it is alone on a string [abc] \u00a0\u00a0&hellip;Read more Some regular expression matches &#8250;","og_url":"https:\/\/www.withinweb.com\/info\/some-regular-expression-matches\/","og_site_name":"PHP Web Applications","article_published_time":"2012-05-12T09:27:49+00:00","article_modified_time":"2012-06-20T13:29:24+00:00","author":"paulv","twitter_card":"summary_large_image","twitter_misc":{"Written by":"paulv","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.withinweb.com\/info\/some-regular-expression-matches\/#article","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/some-regular-expression-matches\/"},"author":{"name":"paulv","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c"},"headline":"Some regular expression matches","datePublished":"2012-05-12T09:27:49+00:00","dateModified":"2012-06-20T13:29:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.withinweb.com\/info\/some-regular-expression-matches\/"},"wordCount":112,"commentCount":0,"articleSection":["General PHP","Regular Expressions"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.withinweb.com\/info\/some-regular-expression-matches\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.withinweb.com\/info\/some-regular-expression-matches\/","url":"https:\/\/www.withinweb.com\/info\/some-regular-expression-matches\/","name":"Some regular expression matches - PHP Web Applications","isPartOf":{"@id":"https:\/\/www.withinweb.com\/info\/#website"},"datePublished":"2012-05-12T09:27:49+00:00","dateModified":"2012-06-20T13:29:24+00:00","author":{"@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c"},"breadcrumb":{"@id":"https:\/\/www.withinweb.com\/info\/some-regular-expression-matches\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.withinweb.com\/info\/some-regular-expression-matches\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.withinweb.com\/info\/some-regular-expression-matches\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.withinweb.com\/info\/"},{"@type":"ListItem","position":2,"name":"Some regular expression matches"}]},{"@type":"WebSite","@id":"https:\/\/www.withinweb.com\/info\/#website","url":"https:\/\/www.withinweb.com\/info\/","name":"PHP Web Applications","description":"Information and support for products of WithinWeb.com","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.withinweb.com\/info\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.withinweb.com\/info\/#\/schema\/person\/04da5531c302d55ffcd777fe81dbb93c","name":"paulv","url":"https:\/\/www.withinweb.com\/info\/author\/paulv\/"}]}},"_links":{"self":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/665","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/comments?post=665"}],"version-history":[{"count":3,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/665\/revisions"}],"predecessor-version":[{"id":783,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/posts\/665\/revisions\/783"}],"wp:attachment":[{"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/media?parent=665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/categories?post=665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withinweb.com\/info\/wp-json\/wp\/v2\/tags?post=665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}