Usually when writing a paper, the English and Chinese format will be separated, but a change will be more time-consuming, can be achieved through the replacement function. Here, take word2003 as an example.1. Select edit → replace interface. Enter "[
This time for you to bring PHP to generate random numbers, letters or alphanumeric mixed strings, PHP to generate random numbers, letters or alphanumeric mixed string of considerations, the following is the actual case, together to see.
PHP
In the previous we have introduced the PHP random number generation method, but did not specifically describe the generated PHP random number is what, then we will introduce the PHP random generation of digital letter combination method, an example
Regular expression rules:"/ rules need to be written in the middle of 2 slashes /".
(. : decimal point) is used to match all characters except line breaks.
(\s: Backslash lowercase s) is used to match a single
0x01 PrefaceRecently, in the work of doing code audit encountered a problem, the title described as follows:PHPinclude' Flag.php ';if(isset($_get[' Code '])){ $code=$_get[' Code ']; if(strlen($code) >40){ die("Long.")); } if(Preg_match(
Some examples
Regular Expression
Description
/\ B ([a-z] +) \ 1 \ B/gi
Position where a word appears consecutively
/(\ W +): \/([^/:] +) (: \ d *)? ([^ #] *)/
Parses a URL into a protocol, domain, port, and
This article mainly introduces Chinese translation and examples of phpctype functions. There are multiple examples of related functions. If you need them, refer to the PHP Ctype extension, which is a built-in extension starting with PHP4.2. Note,
Differences from Perl PCRE function PCRE Patterns PHP manual
Schema Syntax
(No version information available, might only being in SVN)
Schema syntax-syntax explanation for Perl compatible regular expressions
The PCRE library is a set of functions
At the beginning, you have to say ^ and $ they are used to match the start and end of a string, respectively, as illustrated below
If you're a novice, guess you're canceling the regular expression 30 minute introductory tutorial
"^the": The
This article mainly introduces Chinese translation and examples of phpctype functions. there are multiple examples of related functions. if you need them, refer to the PHP Ctype extension, which is a built-in extension starting with PHP4.2. note,
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.