Page 1 of 1

Changing all chars in a spec column

Posted: Fri Feb 08, 2002 8:29 pm
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

Re: Changing all chars in a spec column

Posted: Sun Feb 10, 2002 12:13 am
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

Re: Changing all chars in a spec column

Posted: Fri Feb 15, 2002 6:58 pm
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.

Re: Changing all chars in a spec column

Posted: Sat Feb 16, 2002 2:29 pm
by Andreas
or, after selecting the column, use Edit/Fill Block...