Find and Replace question

General questions about using TextPad

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

Post Reply
Dean

Find and Replace question

Post by Dean »

Hi,

I have multiple documents that require a find and replace to change a list of numbers, shown below:

0
0
1
1
2
0

I can not find the correct settings to use to change the line to read

0
300
0
2
2
0

Can someone please put me out of my misery.

Thanks
Dean
Ray at work

Re: Find and Replace question

Post by Ray at work »

Hi Dean,

In the Find what box:
0\n0\n1\n1\n2\n0\n

In the Replace with box:
0\n300\n0\n2\n2\n0


Make sure that you select "Regular Expression" so that \n is treated as a line break instead of a literal string.

Ray at work
Post Reply