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

8
LINES

< > BotCompany Repo | #1030041 - dropFirstSpacedColumns

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

Libraryless. Click here for Pure Java version (2958L/19K).

sS dropFirstSpacedColumns(int n, S text) {
  S re = "^\\s*" + repString(n, "\\S+\\s*");
  ret mapEachLine(text, line -> regexpReplace_direct(line, re, ""));
}

static IF1<S> dropFirstSpacedColumns(int n) {
  ret text -> dropFirstSpacedColumns(n, text);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1030041
Snippet name: dropFirstSpacedColumns
Eternal ID of this version: #1030041/4
Text MD5: b50bdac92a58c5e612f9b05f337a3d34
Transpilation MD5: 840961b6be25496bc9dbf63460da4427
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-10 14:06:36
Source code size: 261 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 44 / 80
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1030041 & http://1030041.tinybrain.de