You need to sign in to do that
Don't have an account?

Need help in string formatting function.
I have a string which contains object names enclosed in <>. Like this:
String str = 'I have <name> and <id> and <phone>'; //The string may vary,so it needs to be dynamic
I need an output like this. So that i can use the field names to use it in my soql query.
String fields = 'name,id,phone';
try this.