From PCRE Introduce
This extension maintains a global per-thread cache of compiled regular expressions (up to 4096).
How about java.util.regex
, will this cache the compiled patterns?
Because sometimes I just don't want to introduce too many variables to store patterns.