String Manipulations Complex

Hi,

If we have string like Please move File Visit 10/12/2018 File Progress 10/15/2018 to 4567891.

We need only Move, File Visit - 10/12/2018, File Progress - 10/15/2018 and 4567891.

Please suggest…

Str = “Please move File Visit 10/12/2018 File Progress 10/15/2018 to 4567891”

Str = (((str.Replace(“Please move”, “Move,”)).Replace(“File Visit”,"File Visit - “)).Replace(“File Progress”,”, File Progress - ")).Replace(“to”,“and”)

This will be valid for any dates and numbers. Just replacing Words since they appear only once in whole sentence.

1 Like

Thank you…let me check