You've asked a question in a daunting subject.
The best resource I can point you to is a PDF/video entitled, "Everything You Know About Regexes Is Wrong" by Damian Conway, former computer science professor (Monash University, Australia) and well-known Perl developer and author:
https://slides.yowconference.com/yowwest2015/Conway-EverythingYouKnowAboutRegexesIsWrong.pdf
https://youtu.be/ubvSjW6Nyqk
In his presentation/PDF, Conway states there are "six major dialects of regular expression syntax" including BRE, ERE, EMACS, VIM, PCRE, and PSIX (the last standing for "PERL6", recently renamed Raku).
As an example, on PDF page 13 Conway shows that a regex written in the VIM/EMACS editor dialects thusly:
/abc\|abx/
is actually written the following way in ERE, PCRE, and PERL6 (i.e. RAKU):
/abc|abx/
A number of other differences are noted, see the presentation/PDF for details.
Caveat emptor: the link https://www.gnu.org/software/gnulib/manual/html_node/Regular-expression-syntaxes.html has been cited here on StackExchange as an authoritative regex reference. However, in point-of-fact that html page makes no mention of either the PERL6 (aka RAKU) regex dialect or even the widely-distributed PCRE regex dialect.
find
you are using. I'm assuming it's GNUfind
, but the libraries it's using may differ between versions and Unixes. – Kusalananda Jan 05 '20 at 17:47find
. I have included the version in the question. – Ryan Jan 05 '20 at 18:01-regex
and-regextype
are totally non-standard. There arefind
-implementations that does not have these. Also, I imagine that GNUfind
could potentially be made to behave differently depending on what libraries it is linked with, at least with regards to performance (the BSD regular expression implementation in the C library may perform differently from what the same routines on Linux do, for example, and could also have incompatibilities with the Linux implementation). – Kusalananda Jan 05 '20 at 18:25find
? – Ryan Jan 06 '20 at 07:07find
utility. – Kusalananda Jan 06 '20 at 07:14.*
in PRCE or*
in BRE you may experience performances issues. I recently did benchmark for a personnal use case where a simple.*
at the beginning of my regex would more than double the process time. The different implementation you're refering too are well tested and long time optimized I bet there's few differences between them and you could find one better than the other for a specific expression and the contrary too. – Kiwy Jan 06 '20 at 13:03