My father's regular expression, may I ask?

Source: Internet
Author: User
For more information, see config. php $ _ LANG ['new _ arrival '] & nbsp; & nbsp ;=& nbsp; 'New & nbsp; arrivals'; $ _ LANG ['hot _ products'] & nbsp; & nbsp.
Config. php

$ _ LANG ['new _ arrival '] = 'new arrivals ';
$ _ LANG ['hot _ products'] = 'hot products ';
$ _ LANG ['group _ Demos'] = 'group Demos ';
$ _ LANG ['specials '] = "specials ";
$ _ LANG ['after'] = 'contact cu \ 'stomer


 
Service
Order status and
Other after-sales issues
';
$ _ LANG ['group _ Demos'] = 'group Demos ';

$ Subject = file_get_contents ("config. php ");
$ Pattern = 'How to write the regular expression here ';
Preg_match_all ($ pattern, $ subject, $ matches );
Print_r ($ matches );

I want to retrieve all the content after the equal sign. how can I write regular expressions?
Note the symbols in the strings after the equal sign (single quotation marks, double quotation marks, escape characters and line breaks must be obtained ).

The result is as follows:
1. 'new arrivals'
2. 'hot products'
3. 'group Demos'
4. "Specials"
5. 'contact cu \ 'stomer


   
Service
Order status and
Other after-sales issues
'
Share:
------ Solution --------------------
$subject =<<< 'TXT'
$_LANG['new_arrival']       = 'New Arrivals';
$_LANG['hot_products']   = 'Hot Products';
$_LANG['group_deals']     = 'Group Deals';
$_LANG['specials']            = "Specials";
$_LANG['after']            = 'Contact cu\'stomer 


    
service for
order status and
other after-sales issues
'; 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.