Page 1 of 1

Regex Convert tabs to spaces, preserving columns

Posted: Thu Jan 25, 2001 4:02 pm
by Roy Beatty
Greetings,

I want to convert tabs to spaces, but not a fixed number of spaces. TextPad's convert-tabs-to-spaces-on-save behavior preserves the columns that visible characters appear in.

How do I perform that with a Regular Expression?

Is there an option on the Edit or Search menus to do this?

Thanks,

Roy

Re: Regex Convert tabs to spaces, preserving columns

Posted: Tue Apr 17, 2001 1:27 pm
by Roy Beatty
I've since learned that Perl has a command for this distinct from s{}{}.&#32&#32It seems that TextPad's regex is set up such that if S won't do it, then neither will Find & Replace.

Re: Regex Convert tabs to spaces, preserving columns

Posted: Tue Apr 17, 2001 1:28 pm
by Roy Beatty
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&#32&#32bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

Re: Regex Convert tabs to spaces, preserving columns

Posted: Tue Apr 17, 2001 1:29 pm
by Roy Beatty
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

Re: Regex Convert tabs to spaces, preserving columns

Posted: Tue Apr 17, 2001 1:31 pm
by Roy Beatty
<CODE>aaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
ccc
ddd
eee
<\CODE>

end