[GNC] Import Bills & Invoices: how can I use e.g. \S in the custom regular expression for import?

John Ralls jralls at ceridwen.us
Fri Dec 21 23:42:51 EST 2018



> On Dec 21, 2018, at 11:54 AM, Rob Laan <rob.laan at chello.nl> wrote:
> 
> Hi,
> 
> In the function Import Bills & Invoices, there is the option to use a custom regular expression to match the import file to the GnuCash fields.
> In that regular expression, I want to use regex generic character types (e.g. \S for non white space characters), and hex codes (\xHH).
> 
> But when I enter e.g. \S in the dialog box, it is converted to \\S in the resulting regular expression (checked that in the debugger), bungling up the matching process.
> 
> Is this a bug? Or is there some other way to enter \S, \xHH etc. in the custom regular expression?
> 
> Using GnuCash maint on macOS High Sierra.

Sounds like a variant on https://bugs.gnucash.org/show_bug.cgi?id=631876 <https://bugs.gnucash.org/show_bug.cgi?id=631876>.

Regards,
John Ralls



More information about the gnucash-user mailing list