Replaces occurrences of substring1 in a string with obj, in a specified scope.
The search is case-sensitive. Function returns original string with replacements made
Replace(string=[string], substring1=[string], obj=[any], scope=[string])
Argument | Type | Required | Description | Default |
---|---|---|---|---|
string |
string |
true |
The string to search | |
substring1 |
string |
true |
The substring to search for | |
obj |
any |
true |
The string to replace substring1 with | |
scope |
string |
true |
The scope to search in | one |
- Ascii
- CamelCase
- Char
- CharsetDecode
- CharsetEncode
- Compare
- CompareNoCase
- Find
- FindNoCase
- FindOneOf
- Insert
- JSStringFormat
- KebabCase
- LCase
- Left
- ListReduce
- LJustify
- LTrim
- Mid
- ParagraphFormat
- PascalCase
- QueryStringToStruct
- ReEscape
- ReFind
- reFindNoCase
- ReMatch
- reMatchNoCase
- RemoveChars
- RepeatString
- ReplaceList
- ReplaceListNoCase
- ReplaceNoCase
- ReReplace
- reReplaceNoCase
- Reverse
- Right
- RJustify
- RTrim
- Slugify
- SnakeCase
- SpanExcluding
- SpanIncluding
- SQLPrettify
- StringBind
- StringEach
- StringEvery
- StringFilter
- StringMap
- StringReduce
- StringReduceRight
- StringSome
- StringSort
- StripCR
- Trim
- TrueFalseFormat
- UCase
- UCFirst
- Val
- Wrap
- YesNoFormat