I want to get a number sequence from a string.
So I have string(folder_name) => "FGH SN_234256 aalhflsh"
with .find() I can find out where to start.
search_fave_phrase = fave_phrase.find("SN_")
print(search_fave_phrase)
#Output 4
Now I want the whole number after the SN_. But if there is a whitespace or letter the number should stop. My goal is to get that number, no matter where it is in the string.
import re; re.findall(r"SN_(\d+)", fave_phrase)