In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces the use of jsreplace function parameters, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand it.
Replace is a function in Python, VB, ASP, Windows, SQL and Excel, all of which perform replacement operations. In addition, replace means takeonesposition in English.
Jsreplace introduction
Replace is a function in VB, ASP, Windows, SQL, and Excel, all of which perform replacement operations.
Replace () is a common object method of Python.
Method function editing
Replaces a specified character in a string
Syntax sample editing
> axiomatic abc'
> a.replace ('axioma`)
'Abc'
Note:
The replace () method cannot change the original string, the replacement string is a new string created in memory, and the original variable pointer is not changed.
Example:
> axiomatic abc'
> b=a.replace ('axioma`)
> > b
'Abc'
> > a
'abc'
VB and VBS editors
Introduction
This function returns a string in which the specified string has been replaced with another string, and the number of replacements can be specified.
Grammar.
Replace (Expression,Find,ReplaceWith [, Start] [, Count] [, Compare])
Parameters of jsreplace function
Parameters.
Description
Expression
Necessary. String expression, the string that will perform the replace operation.
Find
Necessary. String expression, the string to search for.
ReplaceWith
Necessary. A string expression that is used to replace a string.
Start
Optional. A numeric expression that determines the start of the search from the beginning of Expression to the number of endings, with a default value of 1.
Count
Optional. A numeric expression that limits the number of replacements, and the default value is-1, that is, all substitutions are made.
Compare
Optional. A numeric expression that determines how substrings are compared. The specific setting values are shown in the "Compare Parameter setting values" table below.
Compare parameter setting value
Constant
Value
Description
VbUseCompareOption
-1
Use the setting value of the OptionCompare statement to perform the comparison.
VbBinaryCompare
0
Perform a binary comparison.
VbTextCompare
one
Perform a text comparison.
VbDatabaseCompare
two
For MicrosoftAccess only. Perform comparisons based on information from the database.
Return value
The return value of Replace function
Situation
Return value
The length of Expression is 0
Zero length string.
Expression is Null
A mistake.
The length of Find is 0
The content of Expression.
The length of ReplaceWith is 0
The Expression content of the Find string has been removed.
Start is greater than the length of Expression
Zero length string.
Count is 0
The content of Expression
Other (normal)
Replace the Find string with the Expression content of the ReplaceWith string.
Thank you for reading this article carefully. I hope the article "what is the use of jsreplace function parameters" shared by the editor will be helpful to you. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.