With appropriate use of index, length and substr.
And remember that substr can be used as an lvalue.
In reply to Re: How do I replace a substring (if exists) with a different substring in a string?
by davorg
in thread How do I replace a substring (if exists) with a different substring in a string?
by kommesel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |