{"id":98,"date":"2014-01-05T03:29:19","date_gmt":"2014-01-05T03:29:19","guid":{"rendered":"http:\/\/www.webmastersun.com\/?p=98"},"modified":"2014-02-03T02:19:04","modified_gmt":"2014-02-03T02:19:04","slug":"regular-expression-php-tutorial","status":"publish","type":"post","link":"https:\/\/www.webmastersun.com\/blog\/regular-expression-php-tutorial\/","title":{"rendered":"Regular Expression PHP Tutorial"},"content":{"rendered":"<p>It takes the form:<\/p>\n<p>preg_match(&#8216;\/regularexpression\/&#8217;, $textstring)<\/p>\n<p>Note the forward slash at the start and end of the regular expression. This is a way of indicating there is a regular expression between the forward slashes. Other PHP commands used with regexs are preg_split, preg_replace and preg_match_all. You can find out more of these from the official PHP website.<\/p>\n<p><strong>Searching for an exact text phrase<\/strong><\/p>\n<p>If you want to check if an exact text string is within another text string, there are no special regex characters required &#8211; you just use the exact text phrase for the regular expression. For example:<\/p>\n<p>if (preg_match(&#8216;\/tutorial\/&#8217;, &#8216;tips and tutorials are here for webmasters&#8217;))<\/p>\n<p>&nbsp;&nbsp;&nbsp; echo &#8220;word &#8216;tutorial&#8217; found!&#8221;;<\/p>\n<p>Note &#8211; it&#8217;s case sensitive. It&#8217;s actually more efficient to use the PHP function substrin these cases but I&#8217;m just kicking things off with an easy example.<\/p>\n<p><strong>Start and end of text<\/strong><\/p>\n<p>If you&#8217;re searching for text at the start or end of a text file, use the symbols ^ and $.<\/p>\n<p>&#8220;^The&#8221;: matches any string that starts with &#8220;The&#8221;;<\/p>\n<p>&#8220;of despair$&#8221;: matches a string that ends in the substring &#8220;of despair&#8221;;<\/p>\n<p><strong>Multiple characters<\/strong><\/p>\n<p>The symbols &#8216;*&#8217;, &#8216;+&#8217;, and &#8216;?&#8217; denote the number of times a character or a sequence of characters may occur. What they mean respectively is: &#8220;zero or more&#8221;, &#8220;one or more&#8221;, and &#8220;zero or one&#8221;. For example:<\/p>\n<p>&#8220;tu*&#8221;: matches a string that has the letter t followed by zero or more u&#8217;s (&#8220;t&#8221;, &#8220;tu&#8221;, &#8220;tuuuuu&#8221;, &#8220;tutorial&#8221;, etc).<\/p>\n<p>&#8220;tu+&#8221;: similar but at least one u (&#8220;tu&#8221;, &#8220;tuuu&#8221;, &#8220;tut&#8221;, etc).<\/p>\n<p>&#8220;tu?&#8221;: there may or may not be a u.<\/p>\n<p>&#8220;t?b+$&#8221;: a possible t followed by one or more u&#8217;s ending the string.<\/p>\n<p>Or if you want to be more specific on the number of multiple characters, you can specify a range within braces {}.<\/p>\n<p>&#8220;o{3}h&#8221;: matches a string that has exactly three o&#8217;s followed by h (&#8220;oooh&#8221;).<\/p>\n<p>&#8220;o{3,}h&#8221;: there are at least three o&#8217;s (&#8220;oooh&#8221;, &#8220;ooooh&#8221;, &#8220;ooooooooooh&#8221;, etc).<\/p>\n<p>&#8220;o{3,5}h&#8221;: from three to five o&#8217;s (&#8220;oooh&#8221;, &#8220;ooooh&#8221;, or &#8220;oooooh&#8221;).<\/p>\n<p>You always specify the first number of a range but you can&#8217;t specify just the last number (eg &#8211; {3,5} or {3,} but not {,5}).<\/p>\n<p>If you want to quantify a sequence of characters rather than just a single character, put them inside parentheses:<\/p>\n<p>&#8220;t(ut)*&#8221;: matches a string that has an t followed by zero or more copies of the sequence &#8220;ut&#8221; (eg &#8211; &#8220;t&#8221;, &#8220;tut&#8221;, &#8220;tutututut&#8221;, etc).<\/p>\n<p>&#8220;t(ut){1,3}&#8221;: between one to three copies of &#8220;ut&#8221; (&#8220;tut&#8221;, &#8220;tutut&#8221;, &#8220;tututut&#8221;).<\/p>\n<p><strong>OR operator<\/strong><\/p>\n<p>The &#8216;|&#8217; symbol works as an OR operator: &#8220;tips|tutorials&#8221;: matches a string that has either &#8220;tips&#8221; or &#8220;tutorials&#8221; in it.<\/p>\n<p>&#8220;(b|cd)ef&#8221;: a string that has either &#8220;bef&#8221; or &#8220;cdef&#8221;.<\/p>\n<p>&#8220;(a|b)*c&#8221;: a string that has a sequence of alternating a&#8217;s and b&#8217;s ending in a c.<\/p>\n<p><strong>Wild character<\/strong><\/p>\n<p>A period (&#8216;.&#8217;) is a wild character &#8211; it can stand for any single character:<\/p>\n<p>&#8220;t.*p&#8221;: matches a string that has a t followed by any number of characters followed by a p (&#8220;tip&#8221;, &#8220;tp&#8221;, &#8220;tdfsadfsadsfp&#8221;, etc).<\/p>\n<p>&#8220;^.{5}$&#8221;: a string with exactly 5 characters (&#8220;bingo&#8221;, &#8220;blind&#8221;, &#8220;rainy&#8221;, &#8220;asdfe&#8221;, etc).<\/p>\n<p><strong>Bracket expressions<\/strong><\/p>\n<p>Bracket expressions lets you match a whole range of characters to a single position of a string:<\/p>\n<p>&#8220;[tu]&#8221;: matches a string that has either a &#8216;t&#8217; or a &#8216;u&#8217; (that&#8217;s the same as &#8220;t|u&#8221;);<\/p>\n<p>&#8220;[a-d]&#8221;: a string that has lowercase letters &#8216;a&#8217; through &#8216;d&#8217; (that&#8217;s equal to &#8220;a|b|c|d&#8221; and even &#8220;[abcd]&#8221;);<\/p>\n<p>&#8220;^[a-zA-Z]&#8221;: a string that starts with a letter;<\/p>\n<p>&#8220;[0-9]%&#8221;: a string that has a single digit before a percent sign;<\/p>\n<p>&#8220;,[a-zA-Z0-9]$&#8221;: a string that ends in a comma followed by an alphanumeric character.<\/p>\n<p>Note that inside brackets, all the regex special characters are just ordinary characters &#8211; they don&#8217;t do any of their usual regular expression functions.<\/p>\n<p><strong>Excluding characters<\/strong><\/p>\n<p>You can also exclude characters by using a &#8216;^&#8217; as the first symbol in a bracket expression:<\/p>\n<p>&#8220;%[^a-zA-Z]%&#8221; matches a string with a character that is not a letter between two percent signs).<\/p>\n<p>Note &#8211; the difference between this application and using ^ at the start of a regular expression which specifies the first character of a string.<\/p>\n<p><strong>Escaping regular expression characters<\/strong><\/p>\n<p>What do you do if you want to check for one of the regular expression special characters &#8220;^.[$()|*+?{\\&#8221; in your text string? You have to escape these characters with a backslash (&#8216;\\&#8217;).<\/p>\n<p><strong>Retrieving text using preg_match<\/strong><\/p>\n<p>If you want to extract a phrase out of a text string, you use the PHP function preg_match in the following format:<\/p>\n<p>preg_match(&#8216;\/regular expression\/&#8217;, $textstring, $matchesarray)<\/p>\n<p>It returns a value of 1 if there is a match to your regular expression, a value of 0 if no match. For example,<\/p>\n<p>echo preg_match (&#8216;\/test\/&#8217;, &#8220;a test of preg_match&#8221;);<\/p>\n<p>outputs 1 whereas<\/p>\n<p>echo preg_match (&#8216;\/tutorial\/&#8217;, &#8220;a test of preg_match&#8221;);<\/p>\n<p>outputs 0.<\/p>\n<p>Preg_match is really useful for extracting phrases out of a text string. To do this, you specify an array as the third argument (eg &#8211; $matchesarray is what I use in the example). You also need to use parenthesizes in your regular expression to specify the sections you want to retrieve. If there&#8217;s a successful match, $matchesarray is filled with the results of the search. $matchesarray[0] contain the entire text string. $matchesarray[1] contains the text that matched the first captured parenthesized subpattern, and so on.<\/p>\n<p>For example, the following regex divides a url into two sections. The first section is &#8220;http:\/\/&#8221; (note the escaping back slash), the second section is whatever comes after:<\/p>\n<p>preg_match (&#8216;\/(http:\/\/)(.*)\/&#8217;, &#8220;https:\/\/www.webmastersun.com\/&#8221;, $matchesarray)<\/p>\n<p>This fills $matchesarray with the following values:<\/p>\n<p>$matchesarray[0] = &#8220;https:\/\/www.webmastersun.com\/&#8221;<\/p>\n<p>$matchesarray[1] = &#8220;http:\/\/&#8221;<\/p>\n<p>$matchesarray[2] = &#8220;www.webmastersun.com\/&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It takes the form: preg_match(&#8216;\/regularexpression\/&#8217;, $textstring) Note the forward slash at the start and end of the regular expression. This is a way of indicating there is a regular expression between the forward slashes. Other PHP commands used with regexs are preg_split, preg_replace and preg_match_all. You can find out more of these from the official [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":99,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-98","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Regular Expression PHP Tutorial - Webmaster Sun Blog<\/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.webmastersun.com\/blog\/regular-expression-php-tutorial\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Regular Expression PHP Tutorial - Webmaster Sun Blog\" \/>\n<meta property=\"og:description\" content=\"It takes the form: preg_match(&#8216;\/regularexpression\/&#8217;, $textstring) Note the forward slash at the start and end of the regular expression. This is a way of indicating there is a regular expression between the forward slashes. Other PHP commands used with regexs are preg_split, preg_replace and preg_match_all. You can find out more of these from the official [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webmastersun.com\/blog\/regular-expression-php-tutorial\/\" \/>\n<meta property=\"og:site_name\" content=\"Webmaster Sun Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-01-05T03:29:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-02-03T02:19:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webmastersun.com\/blog\/wp-content\/uploads\/2012\/07\/regular-expressions.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"250\" \/>\n\t<meta property=\"og:image:height\" content=\"158\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Tommy\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tommy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/regular-expression-php-tutorial\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/regular-expression-php-tutorial\\\/\"},\"author\":{\"name\":\"Tommy\",\"@id\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/#\\\/schema\\\/person\\\/441faf493750eb1507f97d50ea9cd742\"},\"headline\":\"Regular Expression PHP Tutorial\",\"datePublished\":\"2014-01-05T03:29:19+00:00\",\"dateModified\":\"2014-02-03T02:19:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/regular-expression-php-tutorial\\\/\"},\"wordCount\":973,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/regular-expression-php-tutorial\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/07\\\/regular-expressions.jpg\",\"articleSection\":[\"Blogging Sun\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/regular-expression-php-tutorial\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/regular-expression-php-tutorial\\\/\",\"url\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/regular-expression-php-tutorial\\\/\",\"name\":\"Regular Expression PHP Tutorial - Webmaster Sun Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/regular-expression-php-tutorial\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/regular-expression-php-tutorial\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/07\\\/regular-expressions.jpg\",\"datePublished\":\"2014-01-05T03:29:19+00:00\",\"dateModified\":\"2014-02-03T02:19:04+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/#\\\/schema\\\/person\\\/441faf493750eb1507f97d50ea9cd742\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/regular-expression-php-tutorial\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/regular-expression-php-tutorial\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/regular-expression-php-tutorial\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/07\\\/regular-expressions.jpg\",\"contentUrl\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/wp-content\\\/uploads\\\/2012\\\/07\\\/regular-expressions.jpg\",\"width\":\"250\",\"height\":\"158\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/regular-expression-php-tutorial\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Regular Expression PHP Tutorial\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/\",\"name\":\"Webmaster Sun Blog\",\"description\":\"Blogging Tips to help you make money online\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/#\\\/schema\\\/person\\\/441faf493750eb1507f97d50ea9cd742\",\"name\":\"Tommy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/84747ef0a129542b907e3e185d1abd75b21de91ebccf404ed99b8308b0ecf291?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/84747ef0a129542b907e3e185d1abd75b21de91ebccf404ed99b8308b0ecf291?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/84747ef0a129542b907e3e185d1abd75b21de91ebccf404ed99b8308b0ecf291?s=96&d=mm&r=g\",\"caption\":\"Tommy\"},\"url\":\"https:\\\/\\\/www.webmastersun.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Regular Expression PHP Tutorial - Webmaster Sun Blog","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.webmastersun.com\/blog\/regular-expression-php-tutorial\/","og_locale":"en_US","og_type":"article","og_title":"Regular Expression PHP Tutorial - Webmaster Sun Blog","og_description":"It takes the form: preg_match(&#8216;\/regularexpression\/&#8217;, $textstring) Note the forward slash at the start and end of the regular expression. This is a way of indicating there is a regular expression between the forward slashes. Other PHP commands used with regexs are preg_split, preg_replace and preg_match_all. You can find out more of these from the official [&hellip;]","og_url":"https:\/\/www.webmastersun.com\/blog\/regular-expression-php-tutorial\/","og_site_name":"Webmaster Sun Blog","article_published_time":"2014-01-05T03:29:19+00:00","article_modified_time":"2014-02-03T02:19:04+00:00","og_image":[{"width":250,"height":158,"url":"https:\/\/www.webmastersun.com\/blog\/wp-content\/uploads\/2012\/07\/regular-expressions.jpg","type":"image\/jpeg"}],"author":"Tommy","twitter_misc":{"Written by":"Tommy","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webmastersun.com\/blog\/regular-expression-php-tutorial\/#article","isPartOf":{"@id":"https:\/\/www.webmastersun.com\/blog\/regular-expression-php-tutorial\/"},"author":{"name":"Tommy","@id":"https:\/\/www.webmastersun.com\/blog\/#\/schema\/person\/441faf493750eb1507f97d50ea9cd742"},"headline":"Regular Expression PHP Tutorial","datePublished":"2014-01-05T03:29:19+00:00","dateModified":"2014-02-03T02:19:04+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webmastersun.com\/blog\/regular-expression-php-tutorial\/"},"wordCount":973,"commentCount":0,"image":{"@id":"https:\/\/www.webmastersun.com\/blog\/regular-expression-php-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webmastersun.com\/blog\/wp-content\/uploads\/2012\/07\/regular-expressions.jpg","articleSection":["Blogging Sun"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webmastersun.com\/blog\/regular-expression-php-tutorial\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webmastersun.com\/blog\/regular-expression-php-tutorial\/","url":"https:\/\/www.webmastersun.com\/blog\/regular-expression-php-tutorial\/","name":"Regular Expression PHP Tutorial - Webmaster Sun Blog","isPartOf":{"@id":"https:\/\/www.webmastersun.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webmastersun.com\/blog\/regular-expression-php-tutorial\/#primaryimage"},"image":{"@id":"https:\/\/www.webmastersun.com\/blog\/regular-expression-php-tutorial\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webmastersun.com\/blog\/wp-content\/uploads\/2012\/07\/regular-expressions.jpg","datePublished":"2014-01-05T03:29:19+00:00","dateModified":"2014-02-03T02:19:04+00:00","author":{"@id":"https:\/\/www.webmastersun.com\/blog\/#\/schema\/person\/441faf493750eb1507f97d50ea9cd742"},"breadcrumb":{"@id":"https:\/\/www.webmastersun.com\/blog\/regular-expression-php-tutorial\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webmastersun.com\/blog\/regular-expression-php-tutorial\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webmastersun.com\/blog\/regular-expression-php-tutorial\/#primaryimage","url":"https:\/\/www.webmastersun.com\/blog\/wp-content\/uploads\/2012\/07\/regular-expressions.jpg","contentUrl":"https:\/\/www.webmastersun.com\/blog\/wp-content\/uploads\/2012\/07\/regular-expressions.jpg","width":"250","height":"158"},{"@type":"BreadcrumbList","@id":"https:\/\/www.webmastersun.com\/blog\/regular-expression-php-tutorial\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webmastersun.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Regular Expression PHP Tutorial"}]},{"@type":"WebSite","@id":"https:\/\/www.webmastersun.com\/blog\/#website","url":"https:\/\/www.webmastersun.com\/blog\/","name":"Webmaster Sun Blog","description":"Blogging Tips to help you make money online","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webmastersun.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.webmastersun.com\/blog\/#\/schema\/person\/441faf493750eb1507f97d50ea9cd742","name":"Tommy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/84747ef0a129542b907e3e185d1abd75b21de91ebccf404ed99b8308b0ecf291?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/84747ef0a129542b907e3e185d1abd75b21de91ebccf404ed99b8308b0ecf291?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/84747ef0a129542b907e3e185d1abd75b21de91ebccf404ed99b8308b0ecf291?s=96&d=mm&r=g","caption":"Tommy"},"url":"https:\/\/www.webmastersun.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webmastersun.com\/blog\/wp-json\/wp\/v2\/posts\/98","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webmastersun.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webmastersun.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webmastersun.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webmastersun.com\/blog\/wp-json\/wp\/v2\/comments?post=98"}],"version-history":[{"count":0,"href":"https:\/\/www.webmastersun.com\/blog\/wp-json\/wp\/v2\/posts\/98\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webmastersun.com\/blog\/wp-json\/wp\/v2\/media\/99"}],"wp:attachment":[{"href":"https:\/\/www.webmastersun.com\/blog\/wp-json\/wp\/v2\/media?parent=98"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webmastersun.com\/blog\/wp-json\/wp\/v2\/categories?post=98"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webmastersun.com\/blog\/wp-json\/wp\/v2\/tags?post=98"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}