in reply to Re^3: Tags in TK Text widgets
in thread Tags in TK Text widgets

Ah, that is what I was trying to do using

$ts_box->FindAndReplaceAll(-regexp, -nocase, "[\n]", " ");
I tried several variations but although they matched a normal character I could never get it to match the \n

Your tightening doesn't unfortunately apply to my actual code because there are other tests made in the bad check loop and $cnt is used for other stuff too. But thanks, I hadn't thought of pulling the string out of the widget to work on it and then putting it back.