I have a sentence in which I want to replace below string.
i/p- " Company Technische Cancellations [Company - Air France KLM]’ .This is Testing."
o/p- " Company Technische Cancellations [Company -*]’ .This is Testing. "
i tried with substring to find index of " - " and append " *]’ .This is Testing." . BUt it is not a correct way. because sometime " - " came multiple time or append text is also changing
thanks i have one more concern if this “Company Technische Cancellations” also dynamic .
that is only constant thing in a string is Company Technische Cancellations [Company - Air France KLM**]’** .This is Testing