trying to extract only company names from text lines using regex in python.
tried using below code to do, but not getting proper output.
here is my code -