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

3
LINES

< > BotCompany Repo | #1021549 // newLinesToSpaces_trim

JavaX fragment (include)

1  
static S newLinesToSpaces_trim(S s) {
2  
  ret s == null ? null : trim(s).replaceAll("\\s*\r?\n\\s*", " ");
3  
}

Author comment

Began life as a copy of #1014697

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1021549
Snippet name: newLinesToSpaces_trim
Eternal ID of this version: #1021549/3
Text MD5: cd8d8d5d6ae3b49b8755429f7ab837ba
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-17 18:55:47
Source code size: 108 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 374 / 385
Version history: 2 change(s)
Referenced in: [show references]