Libraryless. Click here for Pure Java version (2611L/16K).
1 | // joining these should yield the original string |
2 | static LS splitAtWordBoundaries(S s) { |
3 | ret regexpExtractAll("\\w+|\\W+", s); |
4 | } |
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: | 234 / 296 |
Referenced in: | [show references] |