RulePoint
- RulePoint 6.1.2
- All Products
replace(old_text1,[old_text2],,, new_text ,start_num, num_chars)
Argument
| Required
Optional
| Description
|
---|---|---|
old_text1
| Required
| Text in which you want to replace some characters.
|
Old_text2
| Optional
| Text in which you want to replace some characters.
|
new_text
| Required
| The text that will replace characters in old_text.
|
start_num
| Required
| The position of the character in old_text that you want to replace with new_text.
|
num_chars
| Required
| The number of characters in old_text that you want to replace with new_text.
|
Parameter Input Options
| Datatype
|
---|---|
Old_text and new_text can also be event properties.
| String
|
when 1 greeting s with replace(s.value1,s.value2,8,5) as result="welcome hello" then response with body="${result}"
Event Property Value
| Description
| Result
|
---|---|---|
s.value1= "welcome world"
s.value2="welcome hello"
| Replaces part of a text string, based on the number of characters you specify, with a different text string.
| welcome hello
|