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

3
LINES

< > BotCompany Repo | #1009092 - nohup_sanitize - sanitize and shorten arbitrary string for use as file name

JavaX fragment (include)

sS nohup_sanitize(S s) {
  ret empty(s) ? s : takeFirst(50, s.replaceAll("[^.a-zA-Z0-9\\-_]", ""));
}

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1009092
Snippet name: nohup_sanitize - sanitize and shorten arbitrary string for use as file name
Eternal ID of this version: #1009092/3
Text MD5: 4ef8413feb9fc3f426b46f188d5bff3b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-12-21 13:07:46
Source code size: 105 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 253 / 282
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1009092 & http://1009092.tinybrain.de