Subject: bug#40868: Grep C library for multi-string pattern matching?

From: Bruno Haible <[email-masked]>
Date: Tue, 22 Sep 2020 04:19:06 +0200

> Does Grep provide a library that exposes its multi-string pattern
> matching? If not, can someone recommend an implementation?

I don't know exactly what you mean, but the GNU grep algorithms are
used as a library in GNU gettext:
  https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=tree;f=gettext-tools/libgrep

Although in hindsight, I don't know whether using simply a regex would not
have been just as good.

Bruno