Replaces all regex matches with replacement text.
Invalid patterns return the original string.
| s |
input string. |
| pattern |
regular expression pattern. |
| repl |
replacement text. |
|
replaced string. |