{"id":3952,"date":"2023-09-22T07:30:57","date_gmt":"2023-09-22T06:30:57","guid":{"rendered":"https:\/\/help.expertsender.com\/?post_type=es&#038;p=3952"},"modified":"2024-06-27T09:42:58","modified_gmt":"2024-06-27T08:42:58","slug":"text-operations","status":"publish","type":"es","link":"https:\/\/help.expertsender.com\/pl\/emp\/dynamic-content\/text-operations\/","title":{"rendered":"Text operations"},"content":{"rendered":"\n<p>Examples of most often used operations on text (string) variables that you can make using the standard methods available in the C# programming language.<\/p>\n\n\n\n<p>Note that text content in DC statements is sometimes surrounded in single quotes and sometimes in double quotes, e.g. &#8216;single&#8217; vs. &#8220;double&#8221;.<\/p>\n\n\n\n<p>If your DC statement is in the HTML element that already contains double quotes you should use single quotes to surround the text:<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#babed8;--cbp-line-number-width:8.4375px;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" data-code=\"&lt;a href=&quot;http:\/\/www.domain.com\/test.html&amp;age=${SubscriberProperty('age')}&quot;&gt;\" style=\"color:#babed8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg  style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki material-theme-palenight\" style=\"background-color: #292D3E\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #89DDFF\">&lt;<\/span><span style=\"color: #F07178\">a<\/span><span style=\"color: #89DDFF\"> <\/span><span style=\"color: #C792EA\">href<\/span><span style=\"color: #89DDFF\">=<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #C3E88D\">http:\/\/www.domain.com\/test.html&amp;age=${SubscriberProperty(&#39;age&#39;)}<\/span><span style=\"color: #89DDFF\">&quot;<\/span><span style=\"color: #89DDFF\">&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>The most frequently used text operations are described here:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/help.expertsender.com\/emp\/dynamic-content\/text-operations\/substr\/\" data-type=\"es\" data-id=\"3972\">substr<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/help.expertsender.com\/emp\/dynamic-content\/text-operations\/strpos\/\" data-type=\"es\" data-id=\"3970\">strpos<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/help.expertsender.com\/emp\/dynamic-content\/text-operations\/strcat\/\" data-type=\"es\" data-id=\"3966\">strcat<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/help.expertsender.com\/emp\/dynamic-content\/text-operations\/strlen\/\" data-type=\"es\" data-id=\"3968\">strlen<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/help.expertsender.com\/emp\/dynamic-content\/text-operations\/regexp\/\" data-type=\"es\" data-id=\"3962\">regexp &#8211; processing regular expressions<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/help.expertsender.com\/emp\/dynamic-content\/text-operations\/base64\/\" data-type=\"es\" data-id=\"3954\">base64<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/help.expertsender.com\/emp\/dynamic-content\/text-operations\/capitalization\/\" data-type=\"es\" data-id=\"3956\">Capitalization<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/help.expertsender.com\/emp\/dynamic-content\/text-operations\/rot-encryption\/\" data-type=\"es\" data-id=\"3964\">ROT encryption<\/a><\/li>\n<\/ul>\n","protected":false},"author":5,"featured_media":0,"parent":3856,"menu_order":191,"template":"","format":"standard","emp-category":[],"class_list":["post-3952","es","type-es","status-publish","format-standard","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/es\/3952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/es"}],"about":[{"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/types\/es"}],"author":[{"embeddable":true,"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/users\/5"}],"version-history":[{"count":4,"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/es\/3952\/revisions"}],"predecessor-version":[{"id":11083,"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/es\/3952\/revisions\/11083"}],"up":[{"embeddable":true,"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/es\/3856"}],"wp:attachment":[{"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/media?parent=3952"}],"wp:term":[{"taxonomy":"emp-category","embeddable":true,"href":"https:\/\/help.expertsender.com\/pl\/wp-json\/wp\/v2\/emp-category?post=3952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}