Regular expressions is a set of syntax matching rules. Various languages, such as Perl,. Net, and Java, have their own shared Regular Expression Libraries. In. Net, this class library is called Regex.To put it simply, Regex is an application class
From http://hui06242007.blog.163.com/blog/static/46967621200851931436619/
C # RegEx in-depth Regular Expressions
Regular Expressions is a set of syntax matching rules. Various languages, such as Perl,. net, and Java, have their own shared Regular
String [] Split (string RegEx)
Split this string based on the matching of the given regular expression. "//" is required for the RegEx symbol in Java, because RegEx uses "/" as the escape character. In Java, a "/" must be represented.
If "." is
A bit of confusion about the split (string regex) method for string classes in Java
This class is described in the JDK Chinese API as follows:
Public string[] split(String regex)
Splits this string according to the match of the given regular
For example (,),., |, * and other symbols of the class: String area = "(30.13206313822174, 120.4156494140625) (29.87637380707133, 120.1629638671875) (29.882327547852515, 120.50079345703125)"; int t = area. split ("\\)"). length; System. out. println
Java. Lang. String. Split
Split MethodSplits a string into substrings and returns the result as a string array.
Stringobj. Split ([separator, [limit])
StringobjRequired. String object or text to be decomposed. This object will not be modified by the
Regular expressions (Regular expressions) are a set of grammar matching rules for various languages, such as Perl. NET and Java both have theirThe corresponding shared regular Expression class library. In. NET, this class library is called a
Before in the http://shukuiyan.iteye.com/blog/507915 article has already described this problem, but in the last written examination actually met this knowledge point, but also did wrong, embarrassed! The Apprentice is not fine. The topic is
[Switch] experiences in using common Java Methods
Constantly improving ing...
Java. Lang. String split
The string split method is to directly split the string according to the given string, for example
Java code
String value = "a, B, c, d, e ";
Java -- String. split () function, javastring. splitIn java doc, there are String [] java. lang. String. split (String regex)
Splits this string around matches of the given regular expression.
This method works as if by invoking the
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.