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

3
LINES

< > BotCompany Repo | #1033070 // containsRegExpSpecialChars

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

Libraryless. Click here for Pure Java version (3980L/23K).

sbool containsRegExpSpecialChars(S regexp) {
  ret regexpContains("[\\[\\]\\(\\)\\+\\|\\^\\$\\\\\\*\\?\\{\\}]", regexp);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033070
Snippet name: containsRegExpSpecialChars
Eternal ID of this version: #1033070/1
Text MD5: 4df621cfffc7a0b858fa22b0571ac365
Transpilation MD5: f2dc8f29e0ab5e116b8614afee454446
Author: stefan
Category: javax / regexp
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-13 16:17:27
Source code size: 124 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 90 / 130
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1033071 - test_containsRegExpSpecialChars