How to trim multiple characters at begin and end of string. string should be something like {Hello {W}orld}. i want to trim both { and }<
{Hello {W}orld}
{
}<
Is there always a character at the beginning and at the end, that you want to remove? If so you could just use the following:
See: http://codepad.org/IDbG6Km2