Originally posted by Andrew Deters
Andrew Deters wrote:in the following commandregsub -all {^US|} $msg {^USA|} outbufShould i escape the ^ and the | in {^USA|}???
Andrew Deters wrote:
set msg "test test test^US^foo bar"regsub -all -- {^US} $msg {^USA} outbufputs $outbuf
Andrew Deters wrote:I am hoping to change ^US| to ^USA|
regsub -all -- {^US|} $msg {^USA|} outbuf