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

5
LINES

< > BotCompany Repo | #1020844 // assertRegexp - assert string matches a regexp

JavaX fragment (include)

sS assertRegexp(S regexp, S s) {
  if (!regexpMatches(regexp, s))
    fail("Regexp doesn't match: " + regexp + " on " + quote(s));
  ret s;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020844
Snippet name: assertRegexp - assert string matches a regexp
Eternal ID of this version: #1020844/1
Text MD5: 5b666427ad24ae55bdd44f7e85ce1eb2
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-04 00:20:08
Source code size: 145 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 245 / 295
Referenced in: [show references]