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

5
LINES

< > BotCompany Repo | #1030059 // Greeting Detector

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4583L/21K).

set flag Reparse. // make Java code prettier

static bool greetingDetector(S s) {
  ret mmo2_match(collapse("hi!, how!, how're, how's, what, what's, hello!, ^good!"), collapse(s));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

-
Snippet ID: #1030059
Snippet name: Greeting Detector
Eternal ID of this version: #1030059/2
Text MD5: ce72d5c35edff0b6d87f5dfc6d4b09a8
Transpilation MD5: 244139788a64107f2a56bb586e90c455
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-03 14:32:09
Source code size: 186 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 194 / 270
Version history: 1 change(s)
Referenced in: