static Matches getFind3plusRests(S pat, S s) { L<S> tokpat = parse3_cachedPattern(pat), toks = parse3_cachedInput(s); Pair<S[], Int> p = find2plusIndex(tokpat, toks); if (p == null) null; new Matches m; m.m = concatStringArrays( new S[] {joinSubList(toks, 0, p.b-1)}, p.a, new S[] {joinSubList(toks, p.b+l(tokpat)-1)}); ret m; }
Began life as a copy of #1014422
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1014425 |
Snippet name: | getFind3plusRests - returns beginning, inner matches, rest - note: drops punctuation! |
Eternal ID of this version: | #1014425/4 |
Text MD5: | 73eee3cbd69965bc58d371e4ed7b0d84 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-08-23 01:01:13 |
Source code size: | 362 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 418 / 464 |
Version history: | 3 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1017953 - getFind3 - returns inner matches only |