0

I have a String like Status = 'Submit', and I want to remove the single quote characters ('). So my desired output is Status=Submit.

1
  • 1
    This is a colon :.
    – Keith C
    Nov 2, 2016 at 12:31

1 Answer 1

7

You can easily do this using the remove

status = status.remove('\'');

Or you can also use removeStart, removeEnd

String s = '\'Submit\'';
system.debug('--->'+s.removeEnd('\'').removeStart('\''));

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .