in reply to Re^3: Tags in TK Text widgets
in thread Tags in TK Text widgets
I tried replacing the newlines, but I'm having a problem, it doesn't do what I expect. Because I want the replace to appear in the text box I tried:
which appeared to have no effect, so as a sanity check I tried:$ts_box->FindAndReplaceAll(-regexp, -nocase, "[\n]", "%");
which works and replaces all the '+' chars with '%' chars. What am I doing wrong to stop \n matching?$ts_box->FindAndReplaceAll(-regexp, -nocase, "[+]", "%");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Tags in TK Text widgets
by hippo (Archbishop) on Aug 17, 2024 at 15:11 UTC | |
by colintu (Acolyte) on Aug 17, 2024 at 16:41 UTC |