Method Regexp.PCRE2.Plain()->replace1()
classRegexp.PCRE2.Plain
- Method
replace1
stringreplace1(stringsubject,string|function(string:string)with,MatchContext|function(CalloutBlock:int)|voidcontext)- Description
replace one (first) occurance of a pattern in a subject
example:
> Regexp.PCRE2("b[^-]*m")->replace1("abam-boom-fooabadoom","gurka"); Result: "agurka-boom-fooabadoom"