Click here to Skip to main content
15,884,991 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Are the PCRE/PCRE2[^] libraries compatible with the WDK environments? If yes, how can I build them?

Thank you very much!
Posted
Updated 16-Jan-15 2:08am
v2

Probably not, as they most likely have never been designed to run in the kernel. The only way to be sure would be to check the source code.
 
Share this answer
 
Comments
Daroosh 16-Jan-15 9:36am    
Is there any other solution? Is there an RegEx library that I can use with WDK?
Richard MacCutchan 16-Jan-15 9:38am    
I don't know, have you searched for one?
I know the above solution was already accepted but here is a better reason why Regex does not belong in kernel mode.

Consider a simple expression like A.*B ... any substring that starts with the letter A and ends with the letter B - zero or more characters in between.

Now consider an input of one million A's followed by one B.

That's one million potential matches that the regex pattern matching code must track until it sees the letter B. That requires a lot of dynamic memory to track all these potential matches.

This type of work is more appropriate for user mode.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900