Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

3
LINES

< > BotCompany Repo | #1025763 // ai_bracketUsersToDiscordAt

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2362L/15K).

1  
sS ai_bracketUsersToDiscordAt(S s) {
2  
  ret regexpReplaceIC(s, "\\(user (\\d+)\\)", matcher -> "<@" + matcher.group(1) + ">");
3  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025763
Snippet name: ai_bracketUsersToDiscordAt
Eternal ID of this version: #1025763/3
Text MD5: 1483c7aabba6f1427d8fa18a7eaf31c2
Transpilation MD5: 5043d12629181cf9f19b1a27b2528065
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-18 21:58:00
Source code size: 129 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 262 / 362
Version history: 2 change(s)
Referenced in: [show references]