The basic syntax of php regular expressions is summarized in detail. First, let's take a look at two special characters: & amp; rsquo; ^ & amp; rsquo; and & amp; lsquo; $ & amp; rsquo; they are used to match The start and end of The string
: This article mainly introduces the PHP regular expression syntax summary. if you are interested in the PHP Tutorial, you can refer to it. Http://bbs.chinaunix.net/forum.php? Mod = viewthread & tid = 4101636.
Use well
Regular expressionPHP is often
PHP regular expression syntax reprinted from: http://blog.csdn.net/kkobebryant/article/details/267527
Basic regular expression syntax
First, let's take a look at two special characters: '^' and '$'. they are used to match the start and end of the
Reprinted from: http://blog.csdn.net/kkobebryant/article/details/267527
Basic syntax for regular expressions
First, let's take a look at two special characters: ' ^ ' and ' $ ' they are used to match the beginning and end of the string,
Case-sensitive conversion functions
Strtolower ()Strtoupper ()Ucfirst ()Ucword ()
Text HTML Tag processing function
Nl2br ()Htmllentities ()Htmlspecialchars ()Stripslashes ()Strip_tags ()Number_format ()Strrev ()MD5 ()
// Convert to lowercase$ A =
Php built-in function examples
Strtolower ()
Strtoupper ()
Ucfirst ()
Ucword ()
Text html tag processing function
Nl2br ()Htmllentities ()Htmlspecialchars ()Stripslashes ()Strip_tags ()Number_format ()Strrev ()Md5 ()
// Convert to lowercase$
Php basic tutorial php built-in function instance tutorial. So love micro-network now explains first php built-in functions case-sensitive conversion functions text html tags processing functions case-sensitive function copy code: strtolower ()
PHP built-in function example tutorial, built-in function instance tutorial
Uppercase and lowercase conversion related functionsStrtolower ()Strtoupper ()Ucfirst ()Ucword ()
Text HTML tag handler function
NL2BR ()Htmllentities ()Htmlspecialchars
1. Getting Started
In short, regular expressions are a powerful tool for pattern matching and replacement. We can find regular expressions in almost all UNIX-based tools, such as the vi Editor, Perl or PHP scripting language, and awk or sed shell
1. Getting Started
In short, regular expressions are a powerful tool for pattern matching and replacement. We can find regular expressions in almost all UNIX-based tools, such as the VI Editor, Perl or PHP scripting language, and awk or SED Shell
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.