{"id":5964,"date":"2022-08-31T17:33:56","date_gmt":"2022-08-31T12:03:56","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/"},"modified":"2022-08-31T17:33:56","modified_gmt":"2022-08-31T12:03:56","slug":"solved-where-to-start-to-learn-regular-expressions-closed","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/","title":{"rendered":"[Solved] Where to start to learn regular expressions? [closed]"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-16897159\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"16897159\" data-parentid=\"16897114\" data-score=\"1\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>Your question will be closed as it&#8217;s not a real question but you&#8217;ll find a lot documentation about regular expression (abbreviated regex or regexp) on Internet and on StackOverflow but here a beginning.<\/p>\n<p>Following information comes from <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/en.wikipedia.org\/wiki\/Regular_expression\">Wikipedia<\/a>&#8230;<br \/>\n<a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/regexone.com\">http:\/\/regexone.com<\/a> will help you learning regex with lessons.<\/p>\n<hr>\n<h1>Metacharacters:<\/h1>\n<p><strong>. matches any single character<\/strong><br \/>\nFor example a.c matches &#8220;abc&#8221;, etc., but [a.c] matches only &#8220;a&#8221;, &#8220;.&#8221;, or &#8220;c&#8221;.<\/p>\n<p><strong>[ ] matches a single character that is contained within the brackets<\/strong><br \/>\nFor example, [abc] matches &#8220;a&#8221;, &#8220;b&#8221;, or &#8220;c&#8221;. [a-z] specifies a range which matches any lowercase letter from &#8220;a&#8221; to &#8220;z&#8221;. These forms can be mixed: [abcx-z] matches &#8220;a&#8221;, &#8220;b&#8221;, &#8220;c&#8221;, &#8220;x&#8221;, &#8220;y&#8221;, or &#8220;z&#8221;, as does [a-cx-z].<\/p>\n<p><strong>[^ ] matches a single character that is not contained within the brackets<\/strong><br \/>\nFor example, [^abc] matches any character other than &#8220;a&#8221;, &#8220;b&#8221;, or &#8220;c&#8221;. [^a-z] matches any single character that is not a lowercase letter from &#8220;a&#8221; to &#8220;z&#8221;.<\/p>\n<p><strong>^ matches the starting position within the string.<\/strong> In line-based tools, it matches the starting position of any line.<\/p>\n<p><strong>$ matches the ending position of the string or the position just before a string-ending newline.<\/strong> In line-based tools, it matches the ending position of any line.<\/p>\n<p><strong>( ) defines a marked subexpression.<\/strong> The string matched within the parentheses can be recalled later (see the next entry, \\n).<\/p>\n<p><strong>\\n matches what the nth marked subexpression matched<\/strong>, where n is a digit from 1 to 9.<\/p>\n<p><strong>* matches the preceding element zero or more times<\/strong><br \/>\nFor example, ab*c matches &#8220;ac&#8221;, &#8220;abc&#8221;, &#8220;abbbc&#8221;, etc. [xyz]* matches &#8220;&#8221;, &#8220;x&#8221;, &#8220;y&#8221;, &#8220;z&#8221;, &#8220;zx&#8221;, &#8220;zyx&#8221;, &#8220;xyzzy&#8221;, and so on. (ab)* matches &#8220;&#8221;, &#8220;ab&#8221;, &#8220;abab&#8221;, &#8220;ababab&#8221;, and so on.<\/p>\n<p><strong>{m,n} matches the preceding element at least m and not more than n times<\/strong><br \/>\nFor example, a{3,5} matches only &#8220;aaa&#8221;, &#8220;aaaa&#8221;, and &#8220;aaaaa&#8221;. This is not found in a few older instances of regular expressions. BRE mode requires {m,n}.<\/p>\n<hr>\n<h1>Examples:<\/h1>\n<ul>\n<li><strong>.at<\/strong> matches any three-character string ending with &#8220;at&#8221;, including &#8220;hat&#8221;, &#8220;cat&#8221;, and &#8220;bat&#8221;.<\/li>\n<li><strong>[hc]at<\/strong> matches &#8220;hat&#8221; and &#8220;cat&#8221;.<\/li>\n<li><strong>[^b]at<\/strong> matches all strings matched by .at except &#8220;bat&#8221;.<\/li>\n<li><strong>[^hc]at<\/strong> matches all strings matched by .at other than &#8220;hat&#8221; and &#8220;cat&#8221;.<\/li>\n<li><strong>^[hc]at<\/strong> matches &#8220;hat&#8221; and &#8220;cat&#8221;, but only at the beginning of the string or line.<\/li>\n<li><strong>[hc]at$<\/strong> matches &#8220;hat&#8221; and &#8220;cat&#8221;, but only at the end of the string or line.<\/li>\n<li><strong>[.]<\/strong> matches any single character surrounded by &#8220;[&#8221; and &#8220;]&#8221; since the brackets are escaped, for example: &#8220;[a]&#8221; and &#8220;[b]&#8221;.<\/li>\n<\/ul>\n<\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\"><\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Where to start to learn regular expressions? [closed] <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] Your question will be closed as it&#8217;s not a real question but you&#8217;ll find a lot documentation about regular expression (abbreviated regex or regexp) on Internet and on StackOverflow but here a beginning. Following information comes from Wikipedia&#8230; http:\/\/regexone.com will help you learning regex with lessons. Metacharacters: . matches any single character For example &#8230; <a title=\"[Solved] Where to start to learn regular expressions? [closed]\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/\" aria-label=\"More on [Solved] Where to start to learn regular expressions? [closed]\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[339,347],"class_list":["post-5964","post","type-post","status-publish","format-standard","hentry","category-solved","tag-php","tag-regex"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] Where to start to learn regular expressions? [closed] - JassWeb<\/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:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Where to start to learn regular expressions? [closed] - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] Your question will be closed as it&#8217;s not a real question but you&#8217;ll find a lot documentation about regular expression (abbreviated regex or regexp) on Internet and on StackOverflow but here a beginning. Following information comes from Wikipedia&#8230; http:\/\/regexone.com will help you learning regex with lessons. Metacharacters: . matches any single character For example ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-31T12:03:56+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Where to start to learn regular expressions? [closed]\",\"datePublished\":\"2022-08-31T12:03:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/\"},\"wordCount\":423,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"keywords\":[\"php\",\"regex\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/\",\"name\":\"[Solved] Where to start to learn regular expressions? [closed] - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"datePublished\":\"2022-08-31T12:03:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Where to start to learn regular expressions? [closed]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Where to start to learn regular expressions? [closed] - JassWeb","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:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Where to start to learn regular expressions? [closed] - JassWeb","og_description":"[ad_1] Your question will be closed as it&#8217;s not a real question but you&#8217;ll find a lot documentation about regular expression (abbreviated regex or regexp) on Internet and on StackOverflow but here a beginning. Following information comes from Wikipedia&#8230; http:\/\/regexone.com will help you learning regex with lessons. Metacharacters: . matches any single character For example ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/","og_site_name":"JassWeb","article_published_time":"2022-08-31T12:03:56+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Where to start to learn regular expressions? [closed]","datePublished":"2022-08-31T12:03:56+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/"},"wordCount":423,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["php","regex"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/","url":"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/","name":"[Solved] Where to start to learn regular expressions? [closed] - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-08-31T12:03:56+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-where-to-start-to-learn-regular-expressions-closed\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Where to start to learn regular expressions? [closed]"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/5964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=5964"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/5964\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=5964"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=5964"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=5964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}