replace-chars( a, b, c[, d] )
Group |
Looks in a for characters that are contained in b and replaces them with the character in c residing at the same position as the found one in b. If b and c have different lengths, the characters in the longer list are ignored.
Description of Parameters
Parameter |
Description |
a |
Text. |
b |
Characters to look for. |
c |
Characters to replace with. |
d |
(optional) true or single stops the process after the first replacement of each character being searched. |
Examples
Parameter a |
Parameter b |
Parameter c |
Parameter d |
Result |
ABCDEF |
AC |
12 |
1B2DEF |
|
ABCDEF |
AC2 |
12_ |
1B_DEF |
|
ABCDEF |
AC2 |
12_ |
true |
1B2DEF |
ABCDEF |
AC2 |
12_ |
single |
1B2DEF |