JS implements string processing, as follows: The letter becomes the adjacent letter, the punctuation is unchanged, the result if the vowel letter is uppercase, Z becomes a.
the display, a Chinese character or a Japanese-Korean length of 1, an English character length of 0.5** @param string s need to get length strings* The string length obtained @return int*/public static double GetLength (String s) {Double valuelength = 0;String Chinese = "[\u4e00-\u9fa5]";Gets the length of the field value, if it contains Chinese characters, the length of each Chinese character is 2, otherwise 1for (int i = 0; i Get a characterString temp = s.substring (i, i + 1);Determines whet
Use regular expressions to remove all punctuation in a string
Copy Code code as follows:
Extracting HTML Chinese text with regular expressions
Copy Code code as follows:
Regular expressions that match any character, including both English and any punctuation
Regex: \\w*|\\w*| [\\u4e00-\\u9fa5] This expression matches an arbitrary Chinese-English character.Where: \w:a word character: [a-za-z_0-9] (matches a word character); Where: \w:a non-word character: [^\w] (match a non-word character); Where: [\\u4e00-\\u9fa5]: Match a Chinese character;
ref:http://saltdstar.iteye.com/blog/1041690Ref:http://www.jb51.net/article/1
Finishing staff: Anchor
Finishing Date: Date
I find it unfamiliar to many symbols, but sometimes it is necessary.
Search engine searched for a few and did not search the complete, so collated a copy for inspection.
Welcome to correction, also welcome to add.
Common punctuation
English name
Chinese name
symbols
pronunciation
Chinese Approximate pronunciation
Leftparen
Opening parenthesis
(
Today, I encountered the problem of converting Chinese text and English punctuation. Find a solution record from the Internet Html code
Author: "Seth Xu"
==================================================================================
//Function Description: Set two point sorting criterion , according to Y from small to large, y values are equal (x values from small to large sort)
//================
# Include # Include # include # include # include # include using namespace STD; void main () {fstream infile; infile. open ("D: // infile.txt"); vector VEC; string line, result; while (Getline (infile, line) {for (string :: size_type Index = 0
Public static void main (string [] ARGs ){/*** I am doing this and saving it using map. When the string is large, my efficiency is high.*/String test = "asdqwasdasdasdi ";// Count the execution timeLong time1 = system. currenttimemillis ();Char []
Symbol
English name
Chinese name
~
Tilde or swung dash
Wave character or tilde
!
Exclamation mark
Exclamation
@
At sign or commercial at
An AI or a little mouse
The normal interface, as shown in the following illustration, appears below the Drawing toolbar.
If it doesn't show up, you go to these places to find it. View → toolbar → symbol bar. Like the following figure.
What if you can't find
Today I recorded two recent errors. I shouldn't have made such a mistake, but the result is.
ADOConnect data files in strings (for exampleExcel,MDB) The file name must end with ";", for example:
Strcnn = "provider = Microsoft. Jet. oledb.
+ Plus sign; positive sign-Minus sign; minus sign± Plus or minus plus and minus signs×Is multipliedDivision is divided by Division= Is equal to No.=Is not equal to No.Token is equivalent to all equal signOperation is equal to or approximately equal
# Include # include using namespace STD; // invert the words in a sentence without changing the punctuation marks to p228void rever (char * Str) {Int J = strlen (STR)-1; int I = 0; while (I
I would like to thank my colleague Bruce Li for his friendship.
+ Plus sign; positive sign-Minus sign; minus sign± Plus or minus plus and minus signs× Multiplied by multiplication numberDivided by Division= EqualNot equal to not equalExcept
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.