TEXT LENGTH

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Samuel

TEXT LENGTH

Post by Samuel »

HERES THE DEAL.
I have a list of names. They range from 2 characters to 14+ characters. I need this list to be 10 characters. I do not want to erase the extra letters. I do want to tab them over to the right.
Example:

SMITH
JONES
WILSON
INDEPENDEN CE
PERSONALIT IES
CAT
HOUSE
SOUTHWESTE RN
CHAIR
TABLE
.....

PLEASE HELP
Alan Bellows

RE: TEXT LENGTH

Post by Alan Bellows »

If I understand you correctly, you wish to columnize the data by placing tabs after 10 characters. The easiest way to do that is go to Block Select mode (Configure menu), then highlight everything after the first 10 characters on the list, and punch TAB. If I'm misunderstanding the problem, let me know.

Alan Bellows
Software Developer, Epixtech
Jeff Epstein

RE: TEXT LENGTH

Post by Jeff Epstein »

Check out the original column:

http://www.textpad.com/forum/read.php?f=1&i=355&t=355


A slightly different version of the replacement regular expression that was suggested there, will still work to solve your problem. Open the Replace Dialog Box, and try this:

Find What: ^\(.\{10\}\)\(.*\)
Replace With: \1\t\2
Hex ( ) Text (o)
Regular Expression: [X]
Scope: Selected Text
(...the rest of the settings don't matter...)
Post Reply