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

11
LINES

< > BotCompany Repo | #1017872 // Test NLStringMatcher_dollarVars_underscores_dollarDollar with curly phrases (dev.)

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

Download Jar. Libraryless. Click here for Pure Java version (7253L/52K).

!7

p-exp {
  S pat = "how many $faces are on a $rubiks_cube";
  S s = "how many segments are on a {face of a rubik's cube}";

  new SS matches;
  print(new NLStringMatcher_dollarVars_underscores_dollarDollar().match(pat, s, matches));
  printStruct(matches);
  printStruct(matchDollarVarsIC_plusBrackets(pat, s));
}

Author comment

Began life as a copy of #1017830

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: #1017872
Snippet name: Test NLStringMatcher_dollarVars_underscores_dollarDollar with curly phrases (dev.)
Eternal ID of this version: #1017872/5
Text MD5: 37d3d76b809552e53bbbaf1616ed11e5
Transpilation MD5: 1ba70e0dc984260a47f049d044dd5c8c
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-18 23:28:49
Source code size: 326 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 354 / 950
Version history: 4 change(s)
Referenced in: [show references]