{"id":2343,"date":"2018-03-26T14:07:25","date_gmt":"2018-03-26T14:07:25","guid":{"rendered":"http:\/\/www.bardecode.com\/en1\/?p=2343"},"modified":"2018-03-26T14:07:25","modified_gmt":"2018-03-26T14:07:25","slug":"converting-characters-bardecodefiler","status":"publish","type":"post","link":"https:\/\/www.bardecode.com\/en1\/converting-characters-bardecodefiler\/","title":{"rendered":"Converting \/ characters in BardecodeFiler"},"content":{"rendered":"<div>Here is what you need to use in a Reformat Table for converting a barcode value such as 123\/456 to 123-456<\/div>\n<div><\/div>\n<div>Line 1, left hand side:<\/div>\n<div>\n<div><\/div>\n<\/div>\n<div>([^\\\/]+)\\\/([^\\\/]+)<\/div>\n<div>\n<div><\/div>\n<\/div>\n<div>Line 1, right hand side:<\/div>\n<div>\n<div><\/div>\n<\/div>\n<div>{1}-{2}<\/div>\n<div>\n<div><\/div>\n<\/div>\n<div>Explanation:<\/div>\n<div>\n<div><\/div>\n<\/div>\n<div>\\\/ matches a single \/ character (the \\ is needed because \/ is a special character for regex)<\/div>\n<div>[^\\\/] is the set of characters that does not include the \/ character<\/div>\n<div>[^\\\/]+ is one or more non \/ characters<\/div>\n<div>([^\\\/]+) makes a group that can be referenced using {N} on the right hand side where N is the position of the group.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Here is what you need to use in a Reformat Table for converting a barcode value such as 123\/456 to 123-456 Line 1, left hand side: ([^\\\/]+)\\\/([^\\\/]+) Line 1, right hand side: {1}-{2} Explanation: \\\/ matches a single \/ character (the \\ is needed because \/ is a special character for regex) [^\\\/] is the<\/p>\n<p><a href=\"https:\/\/www.bardecode.com\/en1\/converting-characters-bardecodefiler\/\">Continue Reading &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":1810,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[196,18],"tags":[],"class_list":["post-2343","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bardecodefiler","category-knowledge-base"],"_links":{"self":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts\/2343"}],"collection":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/comments?post=2343"}],"version-history":[{"count":1,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts\/2343\/revisions"}],"predecessor-version":[{"id":2344,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/posts\/2343\/revisions\/2344"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/media\/1810"}],"wp:attachment":[{"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/media?parent=2343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/categories?post=2343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bardecode.com\/en1\/wp-json\/wp\/v2\/tags?post=2343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}