ok, i guess the easiest way to explain this is just explain what results i want. in the composer field, if there is a single "/", i want it converted to " & " (this I can do), but if there is more than one "/" i want to change them to ", " except the last one, which would be " & "
example 1:
Tom/John
Tom & John
example 2:
Tom/John/Larry/Bill
Tom, John, Larry & Bill
Probably DetlevD knows how to do this in one go ... I can only think of an action group that executes 2 replace actions:
the first is a "Replace with regular expression" and the format strings:
(.)/(.)
Replace with:
$1 & $2
(as it is "non-greedy" it only replaces the last slash)
and the second is an action of the type "Replace" (no regular expression)
with search string
/
and replace string
,_
(where the _ represents the blank)
The last action does nothing if there is nothing to replace.