PHP-POSIX regular expression function

Source: Internet
Author: User
PHP extension text processing-POSIX regular expression function and example POSIX Regex function

Ereg_replace-regular expression replacement

Ereg-regular expression matching

Eregi_replace-replace a case-insensitive regular expression

Eregi-case-insensitive regular expression matching

Split-use regular expressions to split strings into arrays

Spliti-use regular expressions to split strings into arrays without case sensitivity

SQL _regcase-generate a regular expression for matching with no size difference

Example:

  tag at the beginning of $string.$string = ereg_replace("^", "
", $string);// Put a
tag at the end of $string.$string = ereg_replace("$", "
", $string);// Get rid of any newline characters in $string.$string = ereg_replace("\n", "", $string);?>

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.