I have a phrase, where only some words will change, and I need to store those words on a variable.
Example:
phrase = "I cannot connect to server XPTO\TEST for the last five hours"
The only part that will change is XPTO\TEST and I need to store it on a variable so that I can use it later.
Any ideas, or is it possible?
XPTO\TESTfrom the phrase? How do you want to use the variable later?servername = phrase:match'server%s+(%S+)'