Text Replacement to End of Line

General questions about using TextPad

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

Post Reply
dforrest
Posts: 44
Joined: Mon Jan 19, 2004 11:19 pm
Location: St. Vincent and the Grenadines

Text Replacement to End of Line

Post by dforrest »

Is there any way to select all the text from the first time a particular character appears in a line of text, to the end of that line and replace it with other text. The "particular character" may be repeated in what is to be selected for replacement.
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

To replace "particular character" x to the end of the line with "other text" y:

Click Search > Replace.

Find what: x.*
Replace with: y

Select Regular expression.
dforrest
Posts: 44
Joined: Mon Jan 19, 2004 11:19 pm
Location: St. Vincent and the Grenadines

Post by dforrest »

So simple. Thank you.
Post Reply