{"id":13366,"date":"2018-07-27T06:52:02","date_gmt":"2018-07-27T11:52:02","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=13366"},"modified":"2023-10-17T09:42:06","modified_gmt":"2023-10-17T09:42:06","slug":"how-to-check-the-conformity-of-a-string-according-to-a-pattern","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2018\/07\/27\/how-to-check-the-conformity-of-a-string-according-to-a-pattern\/","title":{"rendered":"How to check the conformity of a string according to a pattern"},"content":{"rendered":"<p>You may come across the situation where you have to check the conformity of a string according to a pattern.<\/p>\n<p><strong>Syntax:<\/strong>\u00a0 pat(EXPR_STR,EXPR_PAT)<\/p>\n<ul>\n<li>EXPR_STR : is a string or CLOB expression that contains the string to be tested.<\/li>\n<li>EXPR_PAT\u00a0\u00a0 : is a string or CLOB expression that contains the pattern used for the verification.<\/li>\n<\/ul>\n<p><strong>Example :<\/strong><\/p>\n<div id=\"attachment_13367\" style=\"width: 453px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" aria-describedby=\"caption-attachment-13367\" class=\"wp-image-13367 size-full\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2018\/07\/code_snippet.png\" alt=\"code_snippet\" width=\"443\" height=\"71\" \/><p id=\"caption-attachment-13367\" class=\"wp-caption-text\">code_snippet<\/p><\/div>\n<p>As seen in the above screenshot pat keyword act as filter criteria, this will fetch only those records where BPCNAM contains &#8216;Beverly&#8217; in it string. Pat keyword is similar to Like keyword of SQL.<\/p>\n<p><strong>Description:<\/strong><\/p>\n<p>Pat allows you to verify that a string corresponds to a pattern. A pattern is a set of characters including metacharacters.<\/p>\n<p>Any character that is not a metacharacter must correspond to the character found in the string. The metacharacters are the following:<\/p>\n<ol>\n<li>* represents any number of characters (possibly no character).<\/li>\n<li>? represents exactly one character.<\/li>\n<li># represents a digit.<\/li>\n<li>! represents a letter.<\/li>\n<\/ol>\n<p>Hope this helps.<\/p>\n<p><span style=\"font-size: Medium;\"><strong>About Us<\/strong><\/span><br \/>\n<a href=\"https:\/\/www.greytrix.com\/africa\/\">Greytrix Africa<\/a> is a leading Implementation, Reselling and Consulting partner for Sage Enterprise Management (Sage X3), Sage 300, Sage Enterprise Management HR (Sage X3 People) &amp; Sage CRM based out of Nairobi, Kenya in East Africa region catering to Tanzania, Ethopia, Middle East, Australia and Asia businesses.<\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/africa\/\">Greytrix Africa<\/a> offers professional services such as <a href=\"https:\/\/www.greytrix.com\/africa\/product\/consulting\/implementation-planning\">Implementation &amp; configuration<\/a>, Business Process Analysis, Project Management, Customization, Integrations &amp; Migrations, Technical support and Onsite resource augmentation along with enhancements within <a href=\"https:\/\/www.greytrix.com\/africa\/product\/sage-solutions\/sage-x3\">Sage Enterprise Management (Sage X3)<\/a>, <a href=\"https:\/\/www.greytrix.com\/africa\/product\/sage-solutions\/sage-x3-people\">Sage Enterprise Management HR (Sage X3 People)<\/a>, <a href=\"https:\/\/www.greytrix.com\/africa\/product\/sage-solutions\/sage-crm\">Sage CRM<\/a> and <a href=\"https:\/\/www.greytrix.com\/africa\/product\/sage-solutions\/sage-300\">Sage 300 (Accpac)<\/a> across various industry verticals like Process Manufacturing (<a href=\"https:\/\/www.greytrix.com\/africa\/product\/process-manufacturing\/sage-x3-in-food-and-beverage-industry\">Food &amp; Beverages<\/a>, <a href=\"https:\/\/www.greytrix.com\/africa\/product\/process-manufacturing\/sage-x3-in-chemical-industry\">Chemical<\/a>), Discrete manufacturing (<a href=\"https:\/\/www.greytrix.com\/africa\/product\/discrete-manufacturing\/sage-x3-in-automotive-industry\">Automotive<\/a>, <a href=\"https:\/\/www.greytrix.com\/africa\/product\/discrete-manufacturing\/sage-x3-in-textiles-and-apparel-industry\">Textile &amp; Apparel<\/a>), <a href=\"https:\/\/www.greytrix.com\/africa\/product\/industry-specific\/sage-x3-in-non-profit-organizations\">Non Profit<\/a>, <a href=\"https:\/\/www.greytrix.com\/africa\/product\/industry-specific\/sage-x3-in-healthcare-industry\">Health-care Industry<\/a> and Services Industry (<a href=\"https:\/\/www.greytrix.com\/africa\/product\/service-industry\/sage-x3-in-financial-services\">Financial<\/a> , <a href=\"https:\/\/www.greytrix.com\/africa\/product\/service-industry\/sage-x3-software-services\">Software<\/a> &amp; <a href=\"https:\/\/www.greytrix.com\/africa\/product\/service-industry\/sage-x3-in-engineering-services\">Engineering<\/a>).<\/p>\n<p>For more information on Sage Enterprise Management Consulting Services, please contact us at <a href=\"mailto:sales@greytrix.com\">sales@greytrix.com<\/a>.We will be glad to assist you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You may come across the situation where you have to check the conformity of a string according to a pattern. Syntax:\u00a0 pat(EXPR_STR,EXPR_PAT) EXPR_STR : is a string or CLOB expression that contains the string to be tested. EXPR_PAT\u00a0\u00a0 : is a string or CLOB expression that contains the pattern used for the verification. Example :\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2018\/07\/27\/how-to-check-the-conformity-of-a-string-according-to-a-pattern\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[389,1436,1762,1766,1822,1945],"class_list":["post-13366","post","type-post","status-publish","format-standard","hentry","category-sage-x3-consulting","tag-conformity-of-a-string","tag-pat-keyword-sage-x3","tag-sage-enterprise-management","tag-sage-enterprise-management-blogs","tag-sage-x3","tag-sage-x3-technical-blogs"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/13366","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=13366"}],"version-history":[{"count":1,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/13366\/revisions"}],"predecessor-version":[{"id":27589,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/13366\/revisions\/27589"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=13366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=13366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=13366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}