{"id":2411,"date":"2021-05-01T08:11:59","date_gmt":"2021-05-01T06:11:59","guid":{"rendered":"https:\/\/digitalia.culturanuova.net\/blog\/?p=2411"},"modified":"2021-05-01T08:19:22","modified_gmt":"2021-05-01T06:19:22","slug":"regex-whatever","status":"publish","type":"post","link":"https:\/\/digitalia.culturanuova.net\/blog\/?p=2411","title":{"rendered":"regex &#8220;whatever&#8221;"},"content":{"rendered":"\n<p>If you want to select &#8220;Whatever&#8221; (word or character), regardless of its length, you can simply use<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">(.*?)<\/pre>\n\n\n\n<p>For example if you want delete all the words between &lt;span&gt; and &lt;\/span&gt;, as in the following row<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">many words &lt;span&gt;many other words here&lt;\/span&gt; other words<\/pre>\n\n\n\n<p>you can use <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>delete &lt;span&gt;(.*?)&lt;\/span&gt;<\/code>. <\/pre>\n\n\n\n<p>The result will be:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">many words other words<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you want to select &#8220;Whatever&#8221; (word or character), regardless of its length, you can simply use (.*?) For example if you want delete all the words between &lt;span&gt; and &lt;\/span&gt;, as in the following row many words &lt;span&gt;many other words here&lt;\/span&gt; other words you can use delete &lt;span&gt;(.*?)&lt;\/span&gt;. The result will be: many words &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/digitalia.culturanuova.net\/blog\/?p=2411\" class=\"more-link\">Leggi tutto<span class=\"screen-reader-text\"> &#8220;regex &#8220;whatever&#8221;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[565],"tags":[227],"class_list":["post-2411","post","type-post","status-publish","format-standard","hentry","category-office","tag-regex"],"_links":{"self":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2411"}],"version-history":[{"count":4,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2411\/revisions"}],"predecessor-version":[{"id":2417,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2411\/revisions\/2417"}],"wp:attachment":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}