Str_split () can split the string according to the required length, but if the string has UTF-8 encoded in Chinese, it will appear garbled.Additional processing is required if you need to implement features that support Chinese characters that are
VBScript Split function usage
Usage: return array = Split (original string, string to find, split into several arrays)DescribeReturns a zero-based one-dimensional array that contains the specified number of substrings.GrammarSplit (expression[,
Vbscript Split function usage (string-to-Array Function), vbscriptsplit
Vbscript Split function usage
Usage: return array = Split (original string, string to be searched, Split into several arrays)DescriptionReturns a one-dimensional array with a
Example of JavaScript string object split method (used to split strings into arrays), javascriptsplit
JavaScript split method
The split method is used to split a string into a string array and return the array. The syntax is as follows:
Copy codeThe
Split method: splits a string into substrings and returns the result as an array of strings. Stringobj.split ([Separator],[limit])Parameters: Stringobj required option. the String object or text to be decomposed . The object is not modified by the
1. Merging Arrays
The Array_merge () function merges the arrays together to return an array of unions. The resulting array starts with the first input array parameter, forcing it sequentially in the order in which the array parameters appear later.
1. Merging Arrays
The Array_merge () function merges the arrays together, returning a federated array. The resulting array begins with the first input array parameter and is forced in the order in which the following array parameters appear. In the
1. Merging arrays
The Array_merge () function merges the arrays together to return an array of unions. The resulting array starts with the first input array parameter, forcing it sequentially in the order in which the array parameters appear later.
The usage of js split is nothing else. Let's take a look at the examples below.
Copy codeThe Code is as follows:
The output result is223566
Js split divides a string into multiple strings by specific characters. you should understand it at a
Note for splitting strings using the string. Split method in C:String. Split provides us with a very flexible way to use it. However, improper use may cause errors. Most people recently used it in code review:String s = "A | B |: | C: D ";String []
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.