python extract text description from large text file
Question: i have bigg text file, and i need extract description message :

    
    
    #### **Description**
    
    20_Ways_To_Make_100_Dollars_EVERYDAY !!!  
    High Quality Guide (PDF File)  
    Here; I will teach you how to make 100 dollars every, or may be even more!  
    Buy the guide to get this secret method. ! worth more than you pay!  
    Good luck to everyone!
    
    
    
    #### **Ships To**
    
    Worldwide
    

start to "**Description** " finish to "#### **Ships To** ", how can i make
this whit python ? i need this output :

    
    
    20_Ways_To_Make_100_Dollars_EVERYDAY !!!  
    High Quality Guide (PDF File)  
    Here; I will teach you how to make 100 dollars every, or may be even more!  
    Buy the guide to get this secret method. ! worth more than you pay!  
    Good luck to everyone!
    


Answer: Assuming that you have more variety in messages after '####' I would suggest
to use stricter format criteria while parsing your file:

    
    
    import re #regular expressions module
    
    file = open('text_to_process.txt', 'r') #opening your file
    
    text = file.readlines()
    
    file.close()
    
    flag = False #flag to mark start/end of description
    
    for line in text:
        if re.match(r"#### \*\*Description\*\*", line):
            flag = True
            continue
        if flag: 
            if not re.match("####", line):
                print(line.strip()) #just printing the line, alternatively you could write it into file or variable
            else:
                flag = False
    

