# P_replace
## Syntax:
@replace**({text}, {old}, {new})**
## Use Case:
Replaces all occurrences of a specific substring with a new value.
## Arguments:
- **{text}**: The original string.
- **{old}** : The substring to find.
- **{new}** : The replacement value.
## Examples:
1. **/echo {@replace(I like cats, cats, dogs)}**
    (Outputs 'I like dogs')
## See Also:
@math