Skip to main content
10 events
when toggle format what by license comment
May 4, 2020 at 20:33 history edited Whimusical CC BY-SA 4.0
added 126 characters in body
May 4, 2020 at 20:32 vote accept Whimusical
May 4, 2020 at 20:25 answer added Kusalananda timeline score: 1
May 4, 2020 at 19:50 answer added bey0nd timeline score: 1
May 4, 2020 at 19:47 comment added bu5hman Please don't expand in comments... others cant follow easily, so clarify your answer in the post. Do you mean you are trying to specify something like {0,1} means wrap the first argument, {0,2} means wrap the first 2, maybe {1,2} means wrap the second only?
May 4, 2020 at 19:37 comment added bu5hman You mean you want to capture each repetition and treat each of them individually in the replacement depending on how many repetitions you get? You will have to define some sort of rule.
May 4, 2020 at 19:26 comment added Whimusical I need to respect the capability of referring to each match in the output like in \1 - \2 - \3, so I can embellish them invidivdually. I just wrote a simplification of my need
May 4, 2020 at 18:41 answer added bu5hman timeline score: 1
May 4, 2020 at 18:29 comment added schrodingerscatcuriosity sed 's/^\([^,]*\)/[\1]/' gives the output you show, but I'm not sure I completely understand you.
May 4, 2020 at 18:20 history asked Whimusical CC BY-SA 4.0