characters. Caret ^ If it appears in the first place, it represents a negative character set, and if it appears in the middle of a string, it is only ordinary characters. Hyphen-Represents a character range description if it appears in the middle of a string, or only as a normal character if it appears in the first place.
[^XYZ] Exclusion type (negate) character set. Matches any character that is not listed. For example, "[^ABC]" can match "Plin" i
Text: The effect of IMEMode value of C # textbox on Chinese Input method (enter to see)
The influence of IMEMode value of C # textbox on Chinese Input method
?
?
?
?
?
?
Take value
Wubi Gaga
Microsoft Pinyin 3.0
Sogou Pinyin
Description
Nocontrol
Press Ctrl+space once for the first call to correctly use Chinese and Western punctua
Take value
Wubi Gaga
Microsoft Pinyin 3.0
Sogou Pinyin(Applicable to mainstream Chinese input method)
Description
Nocontrol
Press Ctrl+space once for the first call to correctly use Chinese and Western punctuation or full half-width characters to inherit the last setting
After the default is the English input state is paged out after default to Western punctuation in Engl
Excerpt from: http://blog.csdn.net/jhycjhyc/article/details/6578570The influence of IMEMode value of C # textbox on Chinese Input Method
value
Press Ctrl+space once for the first call to correctly use Chinese and Western punctuation or full half-width characters inheritance last set
After the default is the English input status after the default is Western
): Meta character, having special meaning in regular expressions
2. The following common meta characters in regular expressions
(1). POSIX Bre and Ere are the meta characters:
\: Typically used to turn on or off the special meaning of subsequent characters, such as \ (... \) and \{...\}
. : Matches any single character (except Nul)
*: matches any number or no single character before it, for example:. Represents any character, then. * matches any length of any character
^: matches the
encounter:
Jsript vbsript matching/^\[\t]*$/"^\[\t]*$" matches a blank line. /\{2}-\{5}/"\{2}-\{5}" verifies that an I number consists of a 2-digit number, a hyphen, and a 5-digit number. /
The following table is a complete list of metacharacters and its behavior in the context of regular expressions:
Character description
\ marks the next character as a special character, or a literal character, or a back reference, or a octal escape character.
In Python, a variable is marked or pointed to a value. When a variable is encountered, Python replaces it with a pointer to a value.>>> cost=2.99>>>. 1*cost0.29900000000000004Variable naming rules:
The length of the variable name is unrestricted, but the character must be a letter, a number, or an underscore (_), not a space, hyphen, punctuation, quotation mark, or other character.
The first ch
a hyphen (-) and the last name must be in upper case.Example: Liu Bing, Li Wei-Hang, Ouyang Hai, or ou 'yang Hai
3. TitleThe title structure level is generally divided into Level 2 or level 3. Each title should contain no more than 15 characters, and no punctuation is added at the end of the title. Titles at all levels are consecutively numbered with Arabic numerals in the left-top layout format. The numbe
thankf Ul recipient by means of minimal number of SMS messages. and the last thing. quirky mobile operators have specified Ted an amusing feature for people who want to save some money. SMS message which consists of Latin letters and spaces only can be up to M characters long while the length of SMS message which consists of any characters is limited by n characters. inputthe first line contains the integer num Bers N and M (1 ≤ n ≤m ≤ 10000 ). the second line contains an advertisement. the adv
. [Note: in fact, the separator is case-sensitive, and the attribute and value are case-insensitive. However, the Selection Characters of CSS in HTML are case-insensitive, but only those in XHTML .](3) The element name, class, and Id can only consist of letters, numbers, and underscores, hyphens, and other Unicode characters. The first character cannot be a number or a hyphen. The class name and ID cannot contain
classes (square brackets)
Description in the PHP manual:
The left square brackets start the description of a character class and end with square brackets. A separate right brace has no special meaning. If a Right square bracket needs to be a member of a character class, you can write it at the first character of the character class (if ^ is used, it is the second one) or use an escape character.
A character class matches a single character in the target string. this character must be one of t
strings to be matched when searching the text subject. A regular expression is used as a template to match a character pattern with the searched string.
Here are some examples of regular expressions that may be encountered:[Code] JScript VBScript match/^ \ [\ t] * $/"^ \ [\ t] * $" matches a blank line. /\ D {2}-\ D {5}/"\ D {2}-\ D {5}" verify that an ID number consists of two digits, A hyphen and a five-digit combination. /
The following table show
searching the text subject. A regular expression is used as a template to match a character pattern with the searched string.
Here are some examples of regular expressions that may be encountered:[Code] JScript VBScript match/^ \ [\ t] * $/"^ \[\ T] * $ "matches a blank row. /\ D {2}-\ d {5}/"\ d {2}-\ d {5}" verify that an ID number consists of two digits, A hyphen and a five-digit combination./
The following table shows a complete list of metachara
matching mode.
Next we will introduce the use of regular expressions by combining its syntax step by step.
Ii. Regular Expressions for first-time contact
Let's first understand some basic concepts of regular expressions. As a Representation Language, regular expressions define a set of descriptions to describe various character classes. The following is a definition in msdn. (MS-help: // Ms. VSCC/ms. msdnvs.2052/cpgenref/html/cpconcharacterclasses.htm)
Character escape tableCharacter classDescr
); // search for strings. Return (r); // return the boolean result. } [/Code]Return Value: 18
Regular expression syntaxA regular expression is a text mode consisting of common characters (such as characters A to Z) and special characters (such as metacharacters. This mode describes one or more strings to be matched when searching the text subject. A regular expression is used as a template to match a character pattern with the searched string.
Here are some examples of regular expressions tha
1. \ B: indicates the start or end of a word. It may be a space, punctuation, or line feed, but \ B does not match any of them. This refers to any position in these elements.Example: \ bhi \ B: search for all the "hi" words in the text, excluding the words "him" and "history ".1.1 ^: match the start of a string, specifically the start of a paragraph.1.2 $: End of matching string. It refers to the end of a paragraph, both of which are a subset of \ B.R
dates:s = "Deadline is30/05/1999, firm" date = "%d%d/%d%d/%d%d%d%d" Print (String.sub (S, string.find (s, date)))-- 30/05 /1999The following table lists all the character classes that Lua supports:. Any character%a letter%c control character%d number%l lowercase%p punctuation character%s empty char%u capital Letter%w Letter and number%x hex digit%z Represents the 0 characterThe uppercase form of the abo
returned.ExampleThe following example shows the use of the search method.function Searchdemo (){var r, re; Declares a variable.var s = "The rain in Spain falls mainly in the plain.";re =/falls/i; Creates a regular expression pattern.r = S.search (re); Finds a string.return (R); Returns a Boolean result.}return value: 18Regular expression syntaxA regular expression is a text pattern consisting of ordinary characters, such as characters A through z, and special characters (called metacharacters).
First, common usageF1 Displays Help content for the current program or Windows.F2 Renaming the selected fileF3 when you're on the desktop, open the Find All Files dialog boxF10 or Alt activates the current program's menu barWindows key or Ctrl+esc open Start menuCtrl+alt+delete Open Windows Task ManagerCtrl+shift+esc Open Windows Task ManagerDelete Deletes the selected selection item and, if it is a file, will be put into the Recycle BinShift+delete Deletes the selected item, if it is a file, it
/regexp.reference.repetition.php
6. Character class (square brackets)
Description in the PHP manual:
The opening parenthesis begins with a description of the character class and ends with square brackets. A separate right parenthesis does not have a special meaning. If a right parenthesis is required as a member of a character class, it can be written in the first character of the prompt (if the ^ is reversed, then the second) or the escape character is used.
A character class matches a
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.