Changing all chars in a spec column

General questions about using TextPad

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

Post Reply
Warren Stotsky

Changing all chars in a spec column

Post by Warren Stotsky »

Is it possible in textpad to change all the values in a particular column for an entire file. I would like to change the value of column 80 from a space to 'X' for every line. SPF edit allows this but can't figure out if textpad will do this.

Thanks
Ed Orchard

Re: Changing all chars in a spec column

Post by Ed Orchard »

Use find and replace (F8), regular expression checked and find

^\(.\{79\}\)
(there is a trailing space in the previous line)
Replace with
\1X

The first reg exp matches 79 of any character followed by space
The replacement expression leaves the 79 characters alone and replaces the space with an X
Mark Schnitzius

Re: Changing all chars in a spec column

Post by Mark Schnitzius »

Or, turn on block select mode by double clicking "Block" at the bottom of the textpad window, select the column, and do a Replace.
Andreas

Re: Changing all chars in a spec column

Post by Andreas »

or, after selecting the column, use Edit/Fill Block...
Post Reply