1 | static S regexpReplaceWithNothing(S pat, S s) {
|
2 | Matcher m = regexpIC(pat, s); |
3 | new StringBuffer buf; |
4 | while (m.find()) |
5 | m.appendReplacement(buf, ""); |
6 | m.appendTail(buf); |
7 | ret str(buf); |
8 | } |
Began life as a copy of #1018263
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: | #1020631 |
| Snippet name: | regexpReplaceWithNothing |
| Eternal ID of this version: | #1020631/1 |
| Text MD5: | a6bfa2b8946d854344b3a7f93f158c69 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-29 00:17:19 |
| Source code size: | 202 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 530 / 570 |
| Referenced in: | [show references] |