breaks

General questions about using TextPad

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

Post Reply
notbob
Posts: 10
Joined: Sat Oct 15, 2005 6:36 am

breaks

Post by notbob »

I'm trying to search for specific text and replace it with carriage returns but can't get it to work with textpad. In Word, I used to be able to do this and replace what I needed with a special character ^p

As an example, let's say I have the following single line (hopefully posting won't break this up, but it is just one line)

this is a test. it is sunny. what time is it.

After running the search and replace in textpad, I would have 3 lines in text pad

this is a test.
it is sunny.
what time is it.

Is there a way to complete this task in textpad?

Thank you.
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Do you want to put a new line character after each full stop that is followed by at least one space? Try this:
Find what: \. +
Replace with: .\n

[X] Regular expression
(There is a space before the + in the search expression.)

Look up "Regular Expressions" in TextPad's help.
Post Reply