Adrien,

What regex implementation do you know of that has negating patterns? None of 
the ones I know do.

The Transaction report uses Guile regex which just wraps whatever libc/msvcrt 
was used to compile it, generally POSIX Enhanced. It doesn't support negating 
patterns and doesn't have an option to find transactions that don't match the 
provided pattern. IIRC libc regexes also don't support UTF8 character classes 
though they'll match explicit UTF8 characters of the same normalization just 
because the bytes are the same.

The find dialog uses glib pcre (perl-compatible regular expressions) which are 
considerably more powerful than POSIX ones but also don't have negating 
patterns. However the Find dialog has a "doesn't match" setting. Other bits of 
GnuCash use boost::regexes, which understands perl regex syntax. We don't use 
the C++ standard library because it doesn't support UTF8.

Regards,
John Ralls

> On Nov 10, 2019, at 3:36 PM, Adrien Monteleone 
> <adrien.montele...@lusfiber.net> wrote:
> 
> You have two options, but both require a negative regex, which while 
> possible, might not be part of the regex library used by GnuCash. (I don’t 
> know, you’d have to try it out)
> 
> #1 - Transaction Report (as requested) with regex *not matching* a string in 
> the Filter field. (it will return transactions that do not match that string 
> in the Description, but also the Notes & Memo, which may or may not, be okay.)
> 
> #2 - Find, followed by Account Report - same regex expression, but with the 
> ability to *only* filter on the Description and not also the Notes and Memo 
> fields.
> 
> Which you use is up to you, or which one actually works at all. (if either)
> 
> Please do let us know if you manage this as I’m sure others would be 
> interested.
> 
> Regards,
> Adrien
> 
>> On Nov 10, 2019 w46d314, at 9:21 AM, Fran_3 via gnucash-user 
>> <gnucash-user@gnucash.org> wrote:
>> 
>> I guess I suffering from project fatigue on this exercise as, all of a 
>> sudden, I cant run a Transaction Report on Checking and then exclude all 
>> transactions to a particular entity... Vendor X
>> I thought I had done this before but... maybe not.
>> 
>> Without grinding through all the attempts I've made this morning would some 
>> kind soul just tell me how to do this...
>> And note... the entity name has two words in it... "Vendor X" in this 
>> example... both of which are necessary for unique identification.
>> Thanks for any help. Fran3
> 
> _______________________________________________
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see 
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Reply via email to