Forums Members Recent Posts Forums Development Salesforce Find and replace ch... Notifications Clear all [Solved] Find and replace characters in a string in Apex Salesforce Last Post by CWL 3 years ago 2 Posts 1 Users 0 Likes 1,605 Views RSS Posts: 205 CWL Admin Issue starter Sep 02, 2021 4:54 am (@cwl) Member Joined: 11 years ago How to find and replace characters in a string/json? Issue Tags find-replace 1 Reply Posts: 205 CWL Admin Issue starter Sep 02, 2021 4:56 am (@cwl) Member Joined: 11 years ago String str = 'anything in a string'; System.Debug(str.replace('a','$').replace('i', '@')); Reply Share: