{"id":18630,"date":"2020-08-29T18:19:20","date_gmt":"2020-08-29T16:19:20","guid":{"rendered":"https:\/\/www.valcon.it\/librelogo\/?p=18630"},"modified":"2022-07-29T16:36:50","modified_gmt":"2022-07-29T14:36:50","slug":"espressioni-regolari","status":"publish","type":"post","link":"https:\/\/www.valcon.it\/librelogo\/espressioni-regolari\/","title":{"rendered":"Espressioni regolari"},"content":{"rendered":"<p>FINDALL, SEARCH, SUB<\/p>\n<h3><span id=\"COUNT\">SUB<\/span><\/h3>\n<p>Substitute character sequences using regex (regular expression) patterns.<\/p>\n<pre class=\"\">PRINT SUB (\u201ct\u201d, \u201cT\u201d, \u201ctext\u201d)\u00a0; print \u201cText\u201d, replacing \u201ct\u201d with \u201cT\u201d\r\nPRINT SUB (\u201c(.)\u201d, \u201c\\\\1\\\\1\u201d, \u201ctext\u201d)\u00a0; print \u201ctteexxtt\u201d, doubling every characters<\/pre>\n<h3><span id=\"SEARCH\">SEARCH<\/span><\/h3>\n<p>Search character sequences patterns using regex patterns.<\/p>\n<pre class=\"\">IF SEARCH (\u201c\\w\u201d, word) [ PRINT \u201cLetter in the word.\u201d ]<\/pre>\n<h3><span id=\"FINDALL\">FINDALL<\/span><\/h3>\n<p>Find all character sequences in the input string matching the given regex pattern.<\/p>\n<pre class=\"\">PRINT FINDALL(\u201c\\w+\u201d, \u201cDogs, cats.\u201d) ; print [\u201cDogs\u201d, \u201ccats\u201d], the list of the words<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>FINDALL, SEARCH, SUB SUB Substitute character sequences using regex (regular expression) patterns. PRINT SUB (\u201ct\u201d, \u201cT\u201d, \u201ctext\u201d)\u00a0; print \u201cText\u201d, replacing \u201ct\u201d with \u201cT\u201d PRINT SUB (\u201c(.)\u201d, \u201c\\\\1\\\\1\u201d, \u201ctext\u201d)\u00a0; print \u201ctteexxtt\u201d, doubling every characters SEARCH Search character sequences patterns using regex patterns. IF SEARCH (\u201c\\w\u201d, word) [ PRINT \u201cLetter in the word.\u201d ] FINDALL Find all&hellip;&nbsp;<a href=\"https:\/\/www.valcon.it\/librelogo\/espressioni-regolari\/\" class=\"\" rel=\"bookmark\">Leggi tutto &raquo;<span class=\"screen-reader-text\">Espressioni regolari<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"off","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-18630","post","type-post","status-publish","format-standard","hentry","category-linguaggio"],"_links":{"self":[{"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/posts\/18630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/comments?post=18630"}],"version-history":[{"count":4,"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/posts\/18630\/revisions"}],"predecessor-version":[{"id":18903,"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/posts\/18630\/revisions\/18903"}],"wp:attachment":[{"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/media?parent=18630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/categories?post=18630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/tags?post=18630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}