human
Python regex alternative for join
assistant
Here is some code to separate each character in string `s` by '-'

re.sub('(.)(?=.)', '\\1-', s)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.