I want to find a word in a string and then truncate the python string around that word.
Example:
str1 = "I want to try and select some specific thing in this world. Can you please help me do that"
Now I want to find the word specific in the string and then truncate the string from front and end to say 15 chars around that word.
So the answer would be something like:
"nd select some specific thing in this "
This is basically 15 characters left and right from "specific".
Thanks in advance