[Solved] Expand Python regex to list of all possible strings [closed]

You could use Exrex. Install with pip install exrex. Then execute in terminal: exrex ‘Good (Morning|afternoon|evening) my (friends|family|brothers|sisters)\. hope you like (apple|orange|grape) juice\.’ Make sure not to forget the backslashes \ before the dots ., as dots are a special character inside regexes. This will return: Good Morning my friends. hope you like apple juice. … Read more