1 | static S ctxREToJavaRE(S s) {
|
2 | ret s.replace("_", "\\b")
|
3 | .replaceFirst("<MATCH1>", "(?<M1>")
|
4 | .replaceFirst("<MATCH2>", "(?<M2>")
|
5 | .replaceFirst("<MATCH3>", "(?<M3>")
|
6 | .replaceFirst("<MATCH4>", "(?<M4>")
|
7 | .replaceFirst("<MATCH5>", "(?<M5>")
|
8 | .replaceAll("<MATCH\\d+>", "(")
|
9 | .replaceAll("<\\\\MATCH\\d+>", ")");
|
10 | } |
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: | 767 / 816 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |