// s = e.g. "John couldn't see the stage with Billy in front of him because he is so [short/tall]. Who is so [short/tall]?" sS winograd_takeFirstOption(S s) { ret regexpReplaceWithFirstGroup("\\[(\\w+)/\\w+\\]", s); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
| Snippet ID: | #1027099 |
| Snippet name: | winograd_takeFirstOption |
| Eternal ID of this version: | #1027099/1 |
| Text MD5: | 10e00104d6fefacb1e736da0148b5a11 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-02-18 20:15:18 |
| Source code size: | 226 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 482 / 512 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1027164 - winograd_takeSecondOption |