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

4
LINES

< > BotCompany Repo | #1030124 // splitAtWordBoundaries

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

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

// joining these should yield the original string
static LS splitAtWordBoundaries(S s) {
  ret regexpExtractAll("\\w+|\\W+", s);
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1030124
Snippet name: splitAtWordBoundaries
Eternal ID of this version: #1030124/1
Text MD5: 8c41b530f414b0be104a46d30f27b7ad
Transpilation MD5: 008fe1e3c794389f0c3542fc6556318f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-10 11:18:52
Source code size: 133 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 231 / 292
Referenced in: [show references]