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

3
LINES

< > BotCompany Repo | #1031225 // dropLeadingEmptyLines - also drop them if they contain just spaces

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

Libraryless. Click here for Pure Java version (2856L/17K).

1  
sS dropLeadingEmptyLines(S s) {
2  
  ret regexpReplace_direct(s, "^[ \t \r \n]*\n", "");
3  
}

Author comment

Began life as a copy of #1031224

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1031225
Snippet name: dropLeadingEmptyLines - also drop them if they contain just spaces
Eternal ID of this version: #1031225/1
Text MD5: 10d4225a2ddbd587c30e051f2d100690
Transpilation MD5: ef857ba6ed9fd0f788dcd55364200743
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-21 18:40:01
Source code size: 89 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 131 / 190
Referenced in: [show references]