I am trying to create a pattern for matching and replacing the words using regex. My string is like given below
<mycomponent id="Myvalue1.Myvalue2.013D0E13-BF5F-4D0F-AAFA-FA4B120DE3E9"
<mycomponent id="Myvalue3.Myvalue4.013D0E13-BF5F-4D0F-AAFA-FA4B120DE3E9"
<mycomponent id="Myvalue5.Myvalue6.013D0E13-BF5F-4D0F-AAFA-FA4B120DE3E9"
<mycomponent id="Myvalue7.Myvalue8.013D0E13-BF5F-4D0F-AAFA-FA4B120DE3E9"
I want the expected result to be look like
<mycomponent id="Myvalue1.Myvalue2"
<mycomponent id="Myvalue3.Myvalue4"
<mycomponent id="Myvalue5.Myvalue6"
<mycomponent id="Myvalue7.Myvalue8"
I can't use ReplaceAll .013D0E13-BF5F-4D0F-AAFA-FA4B120DE3E9 to empty because there are some features that are still using that GUID
I was able to match the string using below pattern
<mycomponent Id=*.*.013D0E13-BF5F-4D0F-AAFA-FA4B120DE3E9
But when i used the below pattern for replacing it is not working
<mycomponent Id=*.*.