read pattern content from text file using regex in PHP-CodeIgniter