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

3
LINES

< > BotCompany Repo | #1027465 // regexpQuote_optimized

JavaX fragment (include)

1  
sS regexpQuote_optimized(S s) {
2  
  ret regexpLiteralNeedsQuoting(s) ? Pattern.quote(s) : s;
3  
}

Author comment

Began life as a copy of #1012559

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: #1027465
Snippet name: regexpQuote_optimized
Eternal ID of this version: #1027465/1
Text MD5: d26b03f6a9515dfa4949b0a530835c8e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-22 13:15:29
Source code size: 94 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 231 / 253
Referenced in: [show references]