I have a string
var query = select id, Details.Id, Details.Info.Id from DetailsItem
I want to replace Details with [Details], so I am using
query.Replace(" Details", " [Details]");
I get the following
select id, [Details].Id, [Details].Info.Id from [Details]Item
but it replaces DetailsItem which I dont want. How can I only replace if the word is Details only?