sS phraseToRegExp(S b) { ret (startsWithLetterOrDigit(b) ? "\\b" : "") + regexpQuote(b) + (endsWithLetterOrDigit(b) ? "\\b" : ""); }
Began life as a copy of #1026551
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: | #1026769 |
Snippet name: | phraseToRegExp (with smart word boundaries) |
Eternal ID of this version: | #1026769/2 |
Text MD5: | 7edc8bdb107113ecdbbbb0f6007773d7 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-01-21 15:00:45 |
Source code size: | 147 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 199 / 227 |
Version history: | 1 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |