bardecode.com
barcode reading software
  • Home
  • Download
  • Purchase
  • SDK Licensing
  • Pricing
    • Windows SDK Price List
    • Windows SDK with PDF Extension Price List
    • Linux SDK Price List
    • Linux SDK with PDF Extension Price List
    • PDF Extension For Windows Price List
    • Multi-Platform Toolkit for .NET Price List
    • BardecodeFiler Desktop Only Price List
    • BardecodeFiler Windows Service Price List
    • DOS Command Prompt Barcode Tool Price List
    • Terms and Conditions
    • Refund Policy
  • Products
    • Softek Barcode Reader Toolkit for Windows
    • Softek Barcode Reader Toolkit for Linux
    • BardecodeFiler Desktop App
    • BardecodeFiler Windows Service
    • Windows DOS Command Prompt Tool
    • Multi-platform barcode reader toolkit for .NET
    • Aquaforest’s Autobahn DX
  • Knowledge Base
    • Documentation
    • Specifications
  • News
  • Contact
    • About Us
    • Terms and Conditions
    • Resellers
    • Links
Select Page ...

News

Regular expressions under 7.5.1.18

admin November 27, 2012 BardecodeFiler, Settings, Software Development Kits No Comments

One change in version 7.5.1.18 of the sdk and version 1.8.1 of BardecodeFiler that has caused some backward compatibility issues is in the area of regular expressions. This version uses Microsoft RegEx matching and one important difference lies in the use of {} brackets.

In previous versions of the sdk you could use the following pattrern to match strings similar to A123456:

A\d{6}

i.e Letter A followed by 6 digits

But the Microsoft’s CAtlRegExp implementation views {} brackets in a similar way to [] brackets and doesn’t have a way of specifying n repeats.

So the above pattern should now be written as:

A\d\d\d\d\d\d

If you need to match between 3 and 6 digits then use the ? character after the digits that are optional:

A\d\d\d\d?\d?\d?

 

Note that in BardecodeFiler the regular expressions used in the Re-Format tab do support the {} brackets for repeated patterns. The above only applies to the RegEx pattern used in the Barcode Options tab.

 

See also:

http://msdn.microsoft.com/en-us/library/k3zs4axe(v=vs.71).aspx

 

← Video Preview Frame Size
Double encoded UTF-8 strings in C# →
admin

  • Copyright © 2023 Softek Software Ltd. All Rights Reserved