Suppose i have two strings in python:
str1 = 'WeDrank$varCupCoffeeToday'
str2 = 'WeDrank2CupCoffeeToday'
We can clearly see that there the difference between them are $var and 2. How do we obtain 2 as an output assuming $var may be in any position i.e
str1 = 'WeDrank2CupCoffee$var'
str2 = 'WeDrank2CupCoffeeToday'
So here the output should be Today. Anticipating the best suggestion. Thanks in advance.