New answers tagged

6

This is a simple "regular expression" situation. You can use the following code as a starting point: Pattern p = Pattern.compile('\\{!.+?\\}'); string templateContent = 'hello adrian , this is for {!Contact.Name} to be delivered to {!Account.ShippingAddress}'; Matcher m = p.matcher(templateContent); while(m.find()) { System.debug(m.group(0)); } Where \\...


Top 50 recent answers are included