I am reading some data from an RSS feed to display on an android device.
The string may or may not have an identifier in brackets at the start e.g.
This is a title of something...
[Brochures] This is a brochure title
[Thought Leadership] This is something else
I want to remove the identifier from the string if it has one before I display it on the screen. I think regex is the best way but having some trouble getting my head around the syntax.
Any suggestions or solutions greatly appreciated.
1 Answer