Navigation: Developing Apps > BINETIX® AGE™ API > The Node > Unicode > age_unicode
word_replace/3
Description
word_replace/3 is an Erlang function exported by "api_age_unicode" module.
Finds and replaces a word onto Source Unicode string.
References
None
Parameters
Name
Type
Position
tuple()
{Position, Length}
ReplaceWith
string()
Unicode string.
Source
Result
Value or Type
-
Code Sample
> age_unicode:word_positions("xyzABC and ABCD"). [{1,6}, {8,3}, {12,4}] > age_unicode:word_replace({8, 3}, "or", "xyzABC and ABCD"). "xyzABC or ABCD"