replace(old_text, new_text)
Replacing sub-text
Parameters
- old_text (text or XText) :
a text to be replaced
- new_text (text or XText) :
a text which should be placed instead of old_text
Result
XText : a new XText instance replacing old_text to new_text