hyTags
HomeHome Getting StartedGetting Started DocumentationDocumentation

string-replace

Replaces the first occurrence of a pattern with a replacement string.
Parameter
Type
Description
self
string
String to search and modify
pattern
string
Regular expression pattern to match
replacement
string
String to replace the first match with
return
string
New string with first match replaced