Find in files - can it search across line breaks?

General questions about using TextPad

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

Post Reply
mitch.barker
Posts: 5
Joined: Thu May 20, 2004 8:26 pm

Find in files - can it search across line breaks?

Post by mitch.barker »

Is there a way that I can search for a string that may occur across a line break?

For example, if the file contains the two lines

Paris in the
springtime

I'd like to be able to find it using this (or any other) regex:

"Paris.*springtime"

Mitch
Ed
Posts: 103
Joined: Tue Mar 04, 2003 9:09 am
Location: Devon, UK

Post by Ed »

Unfortunately TextPad won't do it I believe. But WildEdit will do exactly this
helios
Posts: 716
Joined: Sun Mar 02, 2003 5:52 pm
Location: Helios Software Solutions
Contact:

Post by helios »

You can do it TextPad as follows:

Paris in the\nspringtime

I hope this helps.
Helios Software Solutions
mitch.barker
Posts: 5
Joined: Thu May 20, 2004 8:26 pm

Post by mitch.barker »

helios wrote:You can do it TextPad as follows:

Paris in the\nspringtime

I hope this helps.
That only works in the regular find (within a file). In the "Find in Files" dialog, textpad gives an error if the search string contains a "\n".

I need to do the search across multiple files.

Mitch
Post Reply