I need to replace a string only after 3 occurences of '-'. Can someone give me a pattern for it?
ex: xxyy-xxyy-xxyy-xxyy where xx can be more than one character or number and I need to replace the last set of characters.
finalString = String.replace(/xx$/m, "z")
and this doesn't work because I don't know the last set of characters.
Thanks in advance.