Page 1 of 1

breaks

Posted: Sat Oct 15, 2005 4:41 pm
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.

Posted: Sat Oct 15, 2005 4:54 pm
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.