{"id":3398,"date":"2026-04-05T18:20:52","date_gmt":"2026-04-05T16:20:52","guid":{"rendered":"https:\/\/digitalia.culturanuova.net\/blog\/?p=3398"},"modified":"2026-04-05T18:20:52","modified_gmt":"2026-04-05T16:20:52","slug":"regex-in-kate","status":"publish","type":"post","link":"https:\/\/digitalia.culturanuova.net\/blog\/?p=3398","title":{"rendered":"Regex in Kate"},"content":{"rendered":"\n<p>It could be very difficult using regex in Kate, if you have php files that have still an <strong>html<\/strong> (and not php) as content structure.<\/p>\n\n\n\n<p>In this case you can try to use, al filter, not <code>*.php<\/code>, but <code>*.*<\/code>.<\/p>\n\n\n\n<p>Moreover it could be necessary to use this regex code for <strong>multiline tags<\/strong> :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;style type=\"text\/css\">((.|\\n)*?)&lt;\/style><\/code><\/pre>\n\n\n\n<p>or<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;script type=\"text\/javascript\">((.|\\n)*?)&lt;\/script><\/code><\/pre>\n\n\n\n<p>and so on.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It could be very difficult using regex in Kate, if you have php files that have still an html (and not php) as content structure. In this case you can try to use, al filter, not *.php, but *.*. Moreover it could be necessary to use this regex code for multiline tags : or and &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/digitalia.culturanuova.net\/blog\/?p=3398\" class=\"more-link\">Leggi tutto<span class=\"screen-reader-text\"> &#8220;Regex in Kate&#8221;<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[751,566],"tags":[326,227],"class_list":["post-3398","post","type-post","status-publish","format-standard","hentry","category-php","category-webmaster","tag-kate","tag-regex"],"_links":{"self":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3398","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3398"}],"version-history":[{"count":1,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3398\/revisions"}],"predecessor-version":[{"id":3399,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3398\/revisions\/3399"}],"wp:attachment":[{"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digitalia.culturanuova.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}