I have a string:
str = "alskdfj asldfj 1234_important_what_i_need_123 sdlfja faslkdjfsdkf 234234_important_what_i_need_12312 alsdfj asdfj"
I want to extract each occurrence of the "%important_what_i_need%"
bit from the string, including 10
or so characters before and after the search term.
How do I do this with python? Do I need to import re?