replaceAll

Convenience method to replace all occurrences of matching patterns with some other string.

string
replaceAll
(
string s
,
string pattern
,
string r
)

Parameters

s string

The string to replace things in.

pattern string

The regular expression to use to match.

r string

The thing to replace each match with.

Return Value

Type: string

The string with all matches replaced.

Meta