Solution to a regular expression function when PHP5 reads EXCEL content-php Tutorial

Source: Internet
Author: User
When PHP5 reads the EXCEL content, a regular expression function uses php-ExcelReader to read the EXCEL content. the class contains the following code, PHPcode * if (divg_match (& quot; [^ hmsday-: s] I & quot;, $ formatstr) 0) {founddayandtime PHP5 is a regular expression function used to read the EXCEL content.
The php-ExcelReader is used to read EXCEL files. the following code is used in the class to format the date content in EXCEL.

PHP code
  /* If (pg_match ("/[^ hmsday \/\-: \ s]/I", $ formatstr) = 0) {// found day and time format $ isdate = TRUE; $ formatstr = str_replace ('mm', 'I', $ formatstr); $ formatstr = str_replace ('H ', 'H', $ formatstr); // echo "\ ndate-time $ formatstr \ n"; s }*/


But the error message is that the pg_match () function cannot be found. have you used this function? How can PHP contain this function?


------ Solution --------------------
Preg_match

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.