{"id":1050,"date":"2022-02-08T20:06:58","date_gmt":"2022-02-08T20:06:58","guid":{"rendered":"https:\/\/logicbuilder.integroscrm.com\/help\/?page_id=1050"},"modified":"2022-08-10T16:41:04","modified_gmt":"2022-08-10T16:41:04","slug":"check-if-string-matches-pattern","status":"publish","type":"page","link":"https:\/\/logicbuilder.integroscrm.com\/help\/check-if-string-matches-pattern\/","title":{"rendered":"Check If String Matches Pattern"},"content":{"rendered":"\n<p><a name=\"abstract\"><\/a>Checks whether a string matches the given pattern. Returns&nbsp;<em>true<\/em>&nbsp;if matches and&nbsp;<em>false<\/em>&nbsp;otherwise.&nbsp;<\/p>\n\n\n\n<p><strong>inputs:&nbsp;<\/strong><\/p>\n\n\n\n<p><span style=\"color:#9ed267;\">string<\/span> &#8211;&nbsp;link the string to be checked for pattern match. Commonly linked from the output of <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/get-entity-attributes\/\">Get Entity Attributes<\/a> operator.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\n\n\n\n<p><span style=\"color:#ec8f45;\">pattern<\/span> &#8211; link the pattern to look for in string. Patterns are defined with <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/regexp-template-match-pattern\/\">RegExp Template Match Pattern<\/a>, <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/trivial-template-match-pattern\/\">Trivial Template Match Pattern<\/a>, <a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/valid-email-match-pattern\/\">Valid Email Match Pattern<\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Required: yes<\/li><\/ul>\n\n\n\n<p><strong>outputs:&nbsp;<\/strong><\/p>\n\n\n\n<p><span style=\"color:#deb7ca;\">result<\/span> &#8211; <em>true<\/em> when input string matches pattern, <em>false<\/em> &#8211; otherwise. Use this output to build condition for <span style=\"color:#ec8f45;\">Branch<\/span><\/p>\n\n\n<p><a href=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-141-830a8ce081814973ab47d89638904a4e.png\" rel=\"prettyPhoto\"><img decoding=\"async\" src=\"https:\/\/logicbuilder.integroscrm.com\/help\/wp-content\/uploads\/2022\/02\/img-141-830a8ce081814973ab47d89638904a4e-1024x295.png\" alt=\"\" class=\"wp-image-378\"><\/a><\/p><div style=\"text-align:left\" class=\"yasr-auto-insert-visitor\"><!--Yasr Visitor Votes Shortcode--><div id='yasr_visitor_votes_1050' class='yasr-visitor-votes'><div class=\"yasr-custom-text-vv-before yasr-custom-text-vv-before-1050\">Click to rate this post!<\/div><div id='yasr-vv-second-row-container-7493069602ea2' \n                                        class='yasr-vv-second-row-container'><div id='yasr-visitor-votes-rater-7493069602ea2'\n                                      class='yasr-rater-stars-vv'\n                                      data-rater-postid='1050' \n                                      data-rating='0'\n                                      data-rater-starsize='24'\n                                      data-rater-readonly='false'\n                                      data-rater-nonce='fa81b01ba5' \n                                      data-issingular='false'\n                                    ><\/div><div class=\"yasr-vv-stats-text-container\" id=\"yasr-vv-stats-text-container-7493069602ea2\"><svg xmlns=\"https:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" \n                               class=\"yasr-dashicons-visitor-stats\"\n                               data-postid=\"1050\" \n                               id=\"yasr-stats-dashicon-7493069602ea2\">\n                            <path d=\"M18 18v-16h-4v16h4zM12 18v-11h-4v11h4zM6 18v-8h-4v8h4z\"><\/path>\n                          <\/svg><span id=\"yasr-vv-text-container-7493069602ea2\" class=\"yasr-vv-text-container\">[Total: <span id=\"yasr-vv-votes-number-container-7493069602ea2\">0<\/span>  Average: <span id=\"yasr-vv-average-container-7493069602ea2\">0<\/span>]<\/span><\/div><div id='yasr-vv-loader-7493069602ea2' class='yasr-vv-container-loader'><\/div><\/div><div id='yasr-vv-bottom-container-7493069602ea2' class='yasr-vv-bottom-container'><\/div><\/div><!--End Yasr Visitor Votes Shortcode--><\/div>","protected":false},"excerpt":{"rendered":"<p>Checks whether a string matches the given pattern. Returns&nbsp;true&nbsp;if matches and&nbsp;false&nbsp;otherwise.&nbsp; inputs:&nbsp; string &#8211;&nbsp;link the string to be checked for pattern match. Commonly linked from the output of Get Entity Attributes operator.&nbsp; Required: yes pattern &#8211; link the pattern to look for in string. Patterns are defined with RegExp Template Match Pattern, Trivial Template Match &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/logicbuilder.integroscrm.com\/help\/check-if-string-matches-pattern\/\"> <span class=\"screen-reader-text\">Check If String Matches Pattern<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"tags":[],"class_list":["post-1050","page","type-page","status-publish","hentry"],"yasr_visitor_votes":{"number_of_votes":0,"sum_votes":0,"stars_attributes":{"read_only":false,"span_bottom":false}},"_links":{"self":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/1050","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/comments?post=1050"}],"version-history":[{"count":4,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/1050\/revisions"}],"predecessor-version":[{"id":2120,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/pages\/1050\/revisions\/2120"}],"wp:attachment":[{"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/media?parent=1050"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/logicbuilder.integroscrm.com\/help\/wp-json\/wp\/v2\/tags?post=1050"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}