[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#40868: Grep C library for multi-string pattern matching?
From: |
Bruno Haible |
Subject: |
bug#40868: Grep C library for multi-string pattern matching? |
Date: |
Tue, 22 Sep 2020 04:19:06 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-189-generic; KDE/5.18.0; x86_64; ; ) |
> 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