1 | sS assertRegexp(S regexp, S s) { |
2 | if (!regexpMatches(regexp, s)) |
3 | fail("Regexp doesn't match: " + regexp + " on " + quote(s)); |
4 | ret s; |
5 | } |
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: | 330 / 384 |
Referenced in: | [show references] |