<human>:  Python regex alternative for join
<bot>: Here is some code to concatenate '-' in between characters of string `str`

re.sub('(?<=.)(?=.)', '-', str)

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