REPLACE

Format

REPLACE( src , before , after [ , count ] )

Function

Arguments

src
The string to be converted.
before
The pre-conversion string.
after
The post-conversion string.
count
The number of replacements to perform (optional). Omission or a number less than or equal to zero replaces all instances.

Return value

Related

Version

Example

_tehai = '4m4m5m5m6m6m2p3p3p4p1s1s1s'
_tsumo = '4p'
_dahai = '1s'
_tehai = REPLACE(_tehai, _dahai, _tsumo, 1)
_tehai // '4m4m5m5m6m6m2p3p3p4p4p1s1s'