I working on a system, which need to compile and match a lot of regexes. But these regexes are usually not reused so I want to deallocate them, when I don’t need them anymore.
After scanning through PCRE API spec I didn’t found a function that can be used to this.
There must be a way to do this somehow. I cannot imagine a popular regex library without this functionality.
So is there a way to get rid of unused regex patterns?
Source: API docs