I have a variable in which I need to replace it with a word match.
Currently this is my logic
string = "This is a test"
x = string.replace("Test", "")
How can I make sure here cap T can match the entire word for test as Test?
I have a variable in which I need to replace it with a word match.
Currently this is my logic
string = "This is a test"
x = string.replace("Test", "")
How can I make sure here cap T can match the entire word for test as Test?