My test text u = ' Danish Phone is the work number Contact Type'
.
The regex pattern i used to identify three words (Phone|Contact|Type)
.
This is perfectly identifying the words, Now I want to replace all the words from Phone to type with blanks.
So my final string output will be Danish
.
Can anyone solve using regex in most pythonic way?