You can do such complex operation by adding a Search/Replace operation that use Template.
The calibre template language is a calibre-specific language used throughout calibre for tasks such as specifying file paths, formatting values, and computing the value of columns. The template language is very powerfull and I recomand you to take a look on the
Calibre manual to better understand and use it.
So in your case:
- After add a new operation, select the source field {template} and select the output field of your choice. Note that output field will be completly replaced by the value generated by the template.
- Fill the row "Template" with the following:
Code:
{tags:re(/,\,)}, {tags}
or
Code:
program: re($tags, '/', ',') & ', ' & $tags
You can open a more complete template editor by clicking on the icon button.