0

What are my options if I want to use regular expression matching in a Windows NT kernel driver that is written in C?

I don't think Microsoft Windows has a ready made API for this, but correct me if I'm wrong. I'm assuming that I'll need to use an external library or write my own parser in C.

This is for a commercial project, so GPL open source is not an option.

Thanks,

4

1 回答 1

6

据我所知,Windows 内核不支持正则表达式。因此,您最好的选择可能是使用一个用 C 语言编写并且没有或很少有依赖项的库。这使您可以轻松地将其移植到内核世界中。

这样的库可能是: https ://github.com/kimperator/T-Rex

我认为它的许可证允许商业用途而没有任何“负面”影响。

还要看看实现,因为它没有它可能的那么有效。但它仍然可能适合您的需求。

于 2016-09-24T09:56:02.927 回答