Libraryless. Click here for Pure Java version (2557L/16K).
1 | static Map<S, java.util.regex.Pattern> compileMultiLineRegexp_cache = syncMRUCache(10); |
2 | |
3 | static java.util.regex.Pattern compileMultiLineRegexp(S pat) { |
4 | java.util.regex.Pattern p = compileMultiLineRegexp_cache.get(pat); |
5 | if (p == null) |
6 | compileMultiLineRegexp_cache.put(pat, p = java.util.regex.Pattern.compile(pat)); |
7 | ret p; |
8 | } |
Began life as a copy of #1013715
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028284 |
Snippet name: | compileMultiLineRegexp - compile regexp with MULTILINE flag |
Eternal ID of this version: | #1028284/1 |
Text MD5: | 486de9fe65902b7731bc9bc3b29dd3ba |
Transpilation MD5: | 9dd5c5f461eaf91ba37549fd4aa596eb |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-07 17:55:18 |
Source code size: | 340 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 187 / 256 |
Referenced in: | [show references] |