I don't use Tk, but to me it looks like a problem of using double quotes where you should be using single quotes. eg. try $ts_box->FindAndReplaceAll(-regexp, -nocase, '[\n]', '%');
I expect you don't need the square brackets either, FWIW.
🦛
In reply to Re^5: Tags in TK Text widgets
by hippo
in thread Tags in TK Text widgets
by colintu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |