Вопрос по – замена строки tcl

3
$arg=TEST #### Requested, NOT AVAILABLE psy #;

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

regsub -all {"Requested,"} $arg {"Requested"} arg

Error: User Rate Limit ExceededError: User Rate Limit Exceeded

Ваш Ответ

3   ответа
8

Error: User Rate Limit Exceeded[string map]

set arg [string map { , "" } $arg]

Error: User Rate Limit Exceeded

set idx [string first , $arg]
set arg [string replace $arg $idx [incr idx]]
14

Error: User Rate Limit Exceeded"Requested,"Error: User Rate Limit Exceeded}Error: User Rate Limit Exceeded"):

set arg "TEST #### Requested, NOT AVAILABLE psy #;"
regsub -all "Requested," $arg "Requested" arg

Error: User Rate Limit Exceeded""):

regsub -all "," $arg "" arg

Error: User Rate Limit Exceeded

regsub -all {,} $arg {} arg

Error: User Rate Limit Exceeded/Error: User Rate Limit Exceeded{}Error: User Rate Limit Exceeded""Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
-2
set hfkf "555";
set arg "TEST #### Requested, NOT AVAILABLE psy #;"
regsub -all "Requested," $arg "Requested" arg
regsub -all {"Requested,"} $arg {"Requested"} arg
Error: User Rate Limit Exceeded

Похожие вопросы