{"id":7861,"date":"2015-11-03T23:26:32","date_gmt":"2015-11-04T06:26:32","guid":{"rendered":"https:\/\/ephesoft.com\/docs\/?p=7861"},"modified":"2020-08-26T15:58:54","modified_gmt":"2020-08-26T22:58:54","slug":"kb0010274-how-do-you-make-an-index-field-optional-during-validation","status":"publish","type":"post","link":"https:\/\/ephesoft.com\/docs\/kb0010274-how-do-you-make-an-index-field-optional-during-validation\/","title":{"rendered":"Making an Index Field Optional During Validation"},"content":{"rendered":"

Applies to: <\/b>Ephesoft Transact 4.5.0.0 and above<\/span><\/span><\/p>\n

How do you create a regular expression to allow blank values as an option during validation?<\/span><\/p>\n

Regular Expression<\/b><\/span><\/h2>\n

Combine your regular expression with the regular expression for a blank (empty\/null) space using the pipe symbol ( | ).<\/span><\/p>\n

This regex validates blank spaces:<\/span><\/p>\n

\u00a0^\\s*$<\/span><\/pre>\n

Example:<\/b><\/span><\/p>\n

The following regex will accept \u201cyes\u201d, \u201cno\u201d or empty space as a validation rule.<\/span><\/p>\n

yes|no|^\\s*$<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"

Applies to: Ephesoft Transact 4.5.0.0 and above How do you create a regular expression to allow blank values as an […]<\/p>\n","protected":false},"author":54,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12357,12388],"tags":[361,1306,730],"yoast_head":"\nMaking an Index Field Optional During Validation | Ephesoft Docs<\/title>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Making an Index Field Optional During Validation\" \/>\n<meta property=\"og:description\" content=\"Applies to: Ephesoft Transact 4.5.0.0 and above How do you create a regular expression to allow blank values as an […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ephesoft.com\/docs\/kb0010274-how-do-you-make-an-index-field-optional-during-validation\/\" \/>\n<meta property=\"og:site_name\" content=\"Ephesoft Docs\" \/>\n<meta property=\"article:published_time\" content=\"2015-11-04T06:26:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-26T22:58:54+00:00\" \/>\n<meta name=\"author\" content=\"lydiaxie\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"lydiaxie\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ephesoft.com\/docs\/kb0010274-how-do-you-make-an-index-field-optional-during-validation\/\",\"url\":\"https:\/\/ephesoft.com\/docs\/kb0010274-how-do-you-make-an-index-field-optional-during-validation\/\",\"name\":\"Making an Index Field Optional During Validation | Ephesoft Docs\",\"isPartOf\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/#website\"},\"datePublished\":\"2015-11-04T06:26:32+00:00\",\"dateModified\":\"2020-08-26T22:58:54+00:00\",\"author\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/bca3e75d8d08163c3b26d530db9013d1\"},\"breadcrumb\":{\"@id\":\"https:\/\/ephesoft.com\/docs\/kb0010274-how-do-you-make-an-index-field-optional-during-validation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ephesoft.com\/docs\/kb0010274-how-do-you-make-an-index-field-optional-during-validation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ephesoft.com\/docs\/kb0010274-how-do-you-make-an-index-field-optional-during-validation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ephesoft.com\/docs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Making an Index Field Optional During Validation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ephesoft.com\/docs\/#website\",\"url\":\"https:\/\/ephesoft.com\/docs\/\",\"name\":\"Ephesoft Docs\",\"description\":\"Intelligent Document Processing Made Easy\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ephesoft.com\/docs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/bca3e75d8d08163c3b26d530db9013d1\",\"name\":\"lydiaxie\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b98869ec848ba0d1f0d43297973b9cd7?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b98869ec848ba0d1f0d43297973b9cd7?s=96&r=g\",\"caption\":\"lydiaxie\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Making an Index Field Optional During Validation | Ephesoft Docs","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"Making an Index Field Optional During Validation","og_description":"Applies to: Ephesoft Transact 4.5.0.0 and above How do you create a regular expression to allow blank values as an […]","og_url":"https:\/\/ephesoft.com\/docs\/kb0010274-how-do-you-make-an-index-field-optional-during-validation\/","og_site_name":"Ephesoft Docs","article_published_time":"2015-11-04T06:26:32+00:00","article_modified_time":"2020-08-26T22:58:54+00:00","author":"lydiaxie","twitter_card":"summary_large_image","twitter_misc":{"Written by":"lydiaxie"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ephesoft.com\/docs\/kb0010274-how-do-you-make-an-index-field-optional-during-validation\/","url":"https:\/\/ephesoft.com\/docs\/kb0010274-how-do-you-make-an-index-field-optional-during-validation\/","name":"Making an Index Field Optional During Validation | Ephesoft Docs","isPartOf":{"@id":"https:\/\/ephesoft.com\/docs\/#website"},"datePublished":"2015-11-04T06:26:32+00:00","dateModified":"2020-08-26T22:58:54+00:00","author":{"@id":"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/bca3e75d8d08163c3b26d530db9013d1"},"breadcrumb":{"@id":"https:\/\/ephesoft.com\/docs\/kb0010274-how-do-you-make-an-index-field-optional-during-validation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ephesoft.com\/docs\/kb0010274-how-do-you-make-an-index-field-optional-during-validation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ephesoft.com\/docs\/kb0010274-how-do-you-make-an-index-field-optional-during-validation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ephesoft.com\/docs\/"},{"@type":"ListItem","position":2,"name":"Making an Index Field Optional During Validation"}]},{"@type":"WebSite","@id":"https:\/\/ephesoft.com\/docs\/#website","url":"https:\/\/ephesoft.com\/docs\/","name":"Ephesoft Docs","description":"Intelligent Document Processing Made Easy","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ephesoft.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/bca3e75d8d08163c3b26d530db9013d1","name":"lydiaxie","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ephesoft.com\/docs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b98869ec848ba0d1f0d43297973b9cd7?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b98869ec848ba0d1f0d43297973b9cd7?s=96&r=g","caption":"lydiaxie"}}]}},"_links":{"self":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts\/7861"}],"collection":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/users\/54"}],"replies":[{"embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/comments?post=7861"}],"version-history":[{"count":0,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/posts\/7861\/revisions"}],"wp:attachment":[{"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/media?parent=7861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/categories?post=7861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ephesoft.com\/docs\/wp-json\/wp\/v2\/tags?post=7861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}