PHP String functions include finding character position functions, extracting sub-character functions, replacing strings, character lengths, comparing character functions, dividing the array of characters, removing spaces, and so on.
String
Today to see a tutorial has written some regular expression usage, which mainly refers to the regular character segmentation, matching, find, replace and some of the introductory knowledge and common examples, so organized to share with you.
1.
Q:
I am writing a query condition when the problem is as follows:
If I want to write all the records that contain the word "Li" in a field
$str = "Li";
SELECT * FROM table where field like '% $STR% ';
In addition to the record containing the word
PHP and MySQL in the UTF8 encoding of the Chinese sort instance,
In this paper, the example of PHP and MySQL in the UTF8 encoding Chinese sorting method, shared for everyone to reference. The implementation method is as follows:
Generally speaking,
After the form is submitted, PHP obtains the implementation method of the submitted content. The form is php. PHP implements the method for obtaining submitted content after submitting a form. php has the following question: why cannot PHP obtain
Plus like fuzzy query conditions can not output, such as online!! Extra points
$conn = mysql_connect ("localhost", "root", "");
if (! $conn) {
Die ("Connection Database failed:". Mysql_error ());
} else {
echo "Connect to the database
ACE_ OS: strcasecmp case-sensitive comparisonACE_ OS: strncasecmp n-character case comparisonACE: execname (prog1); execute the prog1 ProgramACE_ OS _String: strdup string deep copyACE_ OS: uname (& uname); get operating system
Microsoft released sscli 2.0. The so-called sscli is Shared Source CLI. Basically. NETThe Microsoft implementation of Framework 2.0 is, of course, a simplified version of. NET Framework 2.0 released.
Sscli 2.0 contains many interesting things,
Preface
In general, the test conditions are nothing more than two aspects: ① Positive Test, ② reverse test!
If you think about it from these two aspects, you will surely be confused. That is to say, it is not comprehensive. Therefore, we should make
(8): mysql Query operation and regular expression summary regular expression
BitsCN.com
What should I do? Text edited with markdown cannot be used in blog parks, and I don't know how to handle it.I. sorting
1. Sort by multiple columnsSeparated by
Regular Expressions: Regular expression, REGEXDivided into two categories:Basic Regular Expressions: BREExtended Regular expression: EREgrep family:Grep:global search REgular expression and Print out of the line. Supports the use of basic regular
grep and regular expressionsGrep:The Three musketeers of text processing on Linuxgrep: Text filter (Pattern: pattern) tool;grep, Egrep, FgrepSed:stream Editor, text editing tools;Awk:linux on the implementation of Gawk, Text Report
First, IntroductionIntroduction two names in the Linux system:grep,egrep. To use these 2 commands first learn to use regular expressions, before you introduce regular expressions, let's say that everyone is familiar with the wildcard characters used
Regular expression: Regual expression,regexpA pattern written by a class of special characters and text characters, where some characters do not represent their literal meanings, but are used to denote control or the function of a wildcard.Divided
Beyond Compare 4 Chinese version has a strong folder and text comparison features, users in comparing files, especially when comparing text, sometimes need to find out some specific content, this time can be used to Beyond Compare software
File View commands: Cat, Tac,revCat [OPTION] ... [FILE] ...-E: Display line terminator $-N: Numbering each line displayed-A: Show all control characters-B: Non-empty line number-S: Compress consecutive blank lines into a rowExample: View the inside
Sed Stream EditorSed is a file editing tool that loads all the files into the memory buffer, reads them by line breaks, reads one line from the buffer into its own internal space at a time, finishes editing, and outputs the results to the screen,
OneSed:stream Editor, stream editors;awk (gawk): Text formatting tool, Report BuilderTwo SED stream editor for filtering and transforming textsed [OPTION] ... {Script-only-if-no-other-script} [Input-file] ...Working mechanism: Each time a line of
1. What is a regular expressionA regular expression is a pattern (pattern) that is written by a class of characters: Select, Grep,egrep,fgrepUse regular expressions to describe selection criteriaRegular Expressions: Basic regular expressions,
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.