This is what I've written:
IF INDEX_OF(' / '+ContractWork.psWork.psTitle.Title+' / ', Contract.hWorkList)>0 THEN
REPLACE_PATTERN (Contract.hWorkList, ' / '+ContractWork.psWork.psTitle.Title+' / ','')
But I am getting a validation error
Syntax error at token "(" (column 25).
Column 25 is the first bracket after REPLACE_PATTERN.
hWorkList is a text field and I have followed the user guide syntax completely - though obviously something's not right.