I have a ".txt" file where I have a string say "Function supported" and "Function Description" I have multiple lines between these two string starting with say "-". How to get each line and apply some changes on it? To get the substring I can do :
substr = list[list.find("Functionality supported")+1:list.find("Functionality Description")]
print ("Apply h1 to substr\n")
Will this helpful and if so how to apply only to text in each line not to "-". Also this "substr" has all those lines, should I apply split on substr , if so how?
thanks in advance -Pankaj