Prasant Jinaga

Prasant Jinaga

  • 1k
  • 751
  • 425.1k

String parsing

Jul 17 2012 11:50 AM
Hi All,

I have a string in a variable something like below

"Line1[0]:                       Bang\r\nLine2[0]:                       xyz\r\nCity[1]:             hwjhdwj"

After parsing the string Now i want to remove the the contents [0] and [1]. After the manupulations it should give the output as

"Line1:                       Bang\r\nLine2:                       xyz\r\nCity:             hwjhdwj"

Do anyone has any idea???

Thanks,
Prasant

Answers (2)