User`s guide
APPENDIX A Function Reference
User’s Guide 183
Syntax string uRepeat(input, repeats)
Parameters
string input
The string to be repeated.
number repeats
The number of times to repeat the input string.
Examples To repeat a string multiple times:
uRepeat("Hello ", 4) // returns "Hello Hello Hello
Hello "
uReplace
Description Replaces parts of a string.
Syntax string uReplace(input, search, replace)
Parameters
string input
The string to worked on.
string search
The pattern to be searched.
string replace
The string that will replace any match.
Examples To search and replace patterns of a string:
uReplace("At four o' clock he became four", "four", "4")
// returns "At 4 o' clock he became 4"
uReverse
Description Reverses a string.
Syntax string uReverse(input)
Parameters
string input
The string to reverse.
Examples To search and replace patterns of a string:
uReverse("Smith”) // returns "htimS”