I have a string like this:
This is a link [[abcd 1234|xyz 1234]] [[India]] [[abcd 1234|xyz 1234]]
and I want to get :
This is a link abcd 1234 [[India]] abcd 1234
I want to take double square brackets having | and take out things that are before | and replace it with whole double square bracket thing and not replace any double square bracket not having | using Boost Regex.
Any help will be appreciated.