Warning: session_start(): open(/var/lib/php/sessions/sess_rm28r2m09js8s3shh1909g7jga, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51

Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
compileMultiLineRegexp - compile regexp with MULTILINE flag [1028284]

Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1028284 // compileMultiLineRegexp - compile regexp with MULTILINE flag

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2557L/16K).

static Map<S, java.util.regex.Pattern> compileMultiLineRegexp_cache = syncMRUCache(10);

static java.util.regex.Pattern compileMultiLineRegexp(S pat) {
  java.util.regex.Pattern p = compileMultiLineRegexp_cache.get(pat);
  if (p == null)
    compileMultiLineRegexp_cache.put(pat, p = java.util.regex.Pattern.compile(pat));
  ret p;
}

Author comment

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: 564 / 698
Referenced in: [show references]