ll.ReplaceSubString(InitialString: string, SubString: string, NewSubString: string, Count: number) : string
Searches InitialString and replaces instances of SubString with NewSubString. Zero Count means "replace all". Positive Count moves left to right. Negative moves right to left.
ll.ReplaceSubString(
'test',
'test',
'test',
2
)
{
"def": "func",
"desc": "Searches InitialString and replaces instances of SubString with NewSubString. Zero Count means \"replace all\". Positive Count moves left to right. Negative moves right to left.",
"energy": 10,
"sleep": 0,
"pure": true,
"link": "https://wiki.secondlife.com/wiki/LlReplaceSubString",
"name": "ReplaceSubString",
"signatures": [
{
"result": [
{
"name": "",
"def": "result",
"desc": "",
"variadic": false,
"type": [
"string"
],
"optional": false
}
],
"args": [
{
"def": "arg",
"name": "InitialString",
"desc": "The original string in which to hunt for substring matches.",
"type": [
"string"
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "SubString",
"desc": "The original substring to find.",
"type": [
"string"
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "NewSubString",
"desc": "The new substring used to replace.",
"type": [
"string"
],
"variadic": false,
"optional": false
},
{
"def": "arg",
"name": "Count",
"desc": "The max number of replacements to make. Zero Count means \"replace all\". Positive Count moves left to right. Negative moves right to left.",
"type": [
"integer",
"number"
],
"variadic": false,
"optional": false
}
]
}
]
}