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

9
LINES

< > BotCompany Repo | #1008768 // Extract pattern by case [dev.]

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (1828L/13K/41K).

!7

p {
  S text = "POKER is a GAME";
  L<IntRange> streaks = findStreaks(stringAsCharacterList(text), f isUpperCase);
  printStruct(streaks);
  pnl(substrings(text, streaks));
  print("Pattern: " + replaceRangesWithXYZVars(text, streaks));
}

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: 411 / 487
Version history: 2 change(s)
Referenced in: [show references]