It's working.
The only thing is the count with the Calibre editor: it anounces 1386 replacement which seems to be only the replacements regarding the first element. When I make a separate recount (out of the function), it finds 1802 which seems to be the true amount, because, as far as I can look, every punctuation signs get its own @.
The main thing is that the full function does the job. I will reuse it for many other things.
Thanks a lot for your very appreciated help.