Is IMatch fully PCRE compatible?

Started by GrantRobertson, June 08, 2020, 10:49:08 PM

Previous topic - Next topic

GrantRobertson

Is the use of regular expressions within IMatch fully PCRE (Perl Compatible Regular Expressions) compliant? Or does it use some subset? Are all parts of IMatch equally compliant? Or are there some parts that are even less compliant than others?

I know the help file says that IMatch uses Perl regular expressions, but that is not quite the same as PCRE, which is a more specific standard.

If not, it would be nice to see a list of exactly which metacharacters are recognized by IMatch and if they are treated any differently from what one would expect in PCRE.

To be clear, a reference to a generic description of regular expressions, written by someone else, is not the same as a list of specific metacharacters recognized by IMatch.

Thanks.

Mario

#1
IMatch uses the Boost RegEx engine. https://www.boost.org/doc/libs/1_66_0/libs/regex/doc/html/index.html
IMatch does not necessarily use the latest version of Boost, mind. If there are minor differences in regexp processing, that is.
IMatch uses only one regexp implementation, everywhere. You did not give any further details.
Apps usually use regular expressions as provided by JavaScript.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

GrantRobertson

Quote from: Mario on June 09, 2020, 09:17:18 AM
IMatch uses the Boost RegEx engine.

Thank you. This will be very helpful.

As is par for the course in the software industry, they only have .PDF versions of their documentation going up through version 1.56 (AND they use two different versioning schemes). I am going to generate a .PDF versions of the documentation for version 1.66 for my own use. Do you want me to send you a copy?

Mario

I think most users benefit more from the Perl RegExp references included in the IMatch help (and the immediate try-out possibilities in the RegExp Tester app included in IMatch).
Not many users ever do more than the absolute basic things with regexp. And for developing regexp, a online reference with simulator beats any static PDF file.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook