static S ctxREToJavaRE(S s) { ret s.replace("_", "\\b") .replaceFirst("<MATCH1>", "(?<M1>") .replaceFirst("<MATCH2>", "(?<M2>") .replaceFirst("<MATCH3>", "(?<M3>") .replaceFirst("<MATCH4>", "(?<M4>") .replaceFirst("<MATCH5>", "(?<M5>") .replaceAll("<MATCH\\d+>", "(") .replaceAll("<\\\\MATCH\\d+>", ")"); }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1008845 |
| Snippet name: | ctxREToJavaRE (regexp) |
| Eternal ID of this version: | #1008845/6 |
| Text MD5: | 48d2f0688b42edb9e6ec1b66318eb10a |
| Author: | stefan |
| Category: | javax / parsing |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-06-23 00:35:22 |
| Source code size: | 345 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 765 / 814 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |