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

3
LINES

< > BotCompany Repo | #1029921 // dropHashComments

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

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

sS dropHashComments(S s) {
  ret replaceAll(s, "#.*", "");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1029921
Snippet name: dropHashComments
Eternal ID of this version: #1029921/1
Text MD5: cd9c1866eb96e1e24e382d0cee8618d8
Transpilation MD5: b585792bfa0b57eef3f84e9398e848d0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-10-06 13:38:19
Source code size: 62 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 157 / 231
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1029922 - test_dropHashComments (OK)