{"id":21320,"date":"2022-04-11T13:56:08","date_gmt":"2022-04-11T11:56:08","guid":{"rendered":"https:\/\/help.openbee.com\/open-bee-scan-capture\/knowledge-base\/how-to-guides\/scripts-in-capture\/case-studies\/index\/index-rewrite-a-value-by-removing-certain-characters\/"},"modified":"2026-05-13T09:36:49","modified_gmt":"2026-05-13T07:36:49","slug":"index-rewrite-a-value-by-removing-certain-characters","status":"publish","type":"page","link":"https:\/\/help.openbee.com\/en\/open-bee-scan-capture\/knowledge-base\/how-to-guides\/scripts-in-capture\/case-studies\/index\/index-rewrite-a-value-by-removing-certain-characters\/","title":{"rendered":"Index: Rewrite a value by removing certain characters"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"Index:r&#xE9;&#xE9;crireunevaleurensupprimantcertainscaract&#xE8;res-Principe:\">Principle:<\/h2>\n\n<p>In some cases, it may be necessary to rewrite a value from an index by removing some particular character. The values are too varied to allow a rewrite with advanced regex<\/p>\n\n<h2 class=\"wp-block-heading\" id=\"Index:r&#xE9;&#xE9;crireunevaleurensupprimantcertainscaract&#xE8;res-Script:\">Script:<\/h2>\n\n<pre class=\"wp-block-code\"><code>var indexValue = getTextFromIndexInfo(getFirstIndexFromID(pParameters,\"INDEX_ID\"));\nreturn indexValue.replace(\/&#91;^a-zA-Z0-9]\/gi, '');\/\/ efface tous les caract\u00e8res non alphanum\u00e9riques<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Principle: In some cases, it may be necessary to rewrite a value from an index by removing some particular character. The values are too varied to allow a rewrite with advanced regex Script:<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":21276,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"templates\/ob-help-products.php","meta":{"footnotes":""},"class_list":["post-21320","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/comments?post=21320"}],"version-history":[{"count":4,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21320\/revisions"}],"predecessor-version":[{"id":22261,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21320\/revisions\/22261"}],"up":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21276"}],"wp:attachment":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/media?parent=21320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}