Download Jar. Libraryless. Click here for Pure Java version (7145L/51K).
1 | !7 |
2 | |
3 | p-exp { |
4 | S pat = "$gertrude is $afraid_of $wolves"; |
5 | S s = "klaus is afraid of wolves"; |
6 | SS matches = litorderedmap("$gertrude" := "Klaus", "$afraid_of" := "afraid of"); |
7 | |
8 | printStruct(matchDollarVarsIC_underscores(pat, s)); |
9 | print(new NLStringMatcher_dollarVars_underscores().match(pat, s, matches)); |
10 | printStruct(matches); |
11 | } |
Began life as a copy of #1017696
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017830 |
Snippet name: | Test NLStringMatcher_dollarVars_underscores (OK) |
Eternal ID of this version: | #1017830/5 |
Text MD5: | 9e09122c225a9f461889ed36c037945a |
Transpilation MD5: | d62d73fade84f15f0b1a34a2eb7daae6 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-08-15 16:00:51 |
Source code size: | 345 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 434 / 1015 |
Version history: | 4 change(s) |
Referenced in: | [show references] |