Libraryless. Click here for Pure Java version (1828L/13K/41K).
1 | !7 |
2 | |
3 | p { |
4 | S text = "POKER is a GAME"; |
5 | L<IntRange> streaks = findStreaks(stringAsCharacterList(text), f isUpperCase); |
6 | printStruct(streaks); |
7 | pnl(substrings(text, streaks)); |
8 | print("Pattern: " + replaceRangesWithXYZVars(text, streaks)); |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008768 |
Snippet name: | Extract pattern by case [dev.] |
Eternal ID of this version: | #1008768/3 |
Text MD5: | 4b2af9409a8cfa53f2cab44b0f556173 |
Transpilation MD5: | bca0f33476ec9839d75f33dc90d1d830 |
Author: | stefan |
Category: | javax / a.i. parsing |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-06-02 12:17:38 |
Source code size: | 250 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 485 / 587 |
Version history: | 2 change(s) |
Referenced in: | [show references] |