Page 1 of 1
Multiline find - how do I accomplish this?
Posted: Sun Mar 12, 2006 3:51 pm
Im testing AFR and want to do the following... In this text file (FTP program Serv-U ini file), I wanna find the users who dont have Timeout= and MaxNrUsers=2 defined.
I tried something lke RelPaths=1\n[
But it didnt work. The goal is to find user X below, since after Relpaths=1, theres [USER... And that doesnt exist for the ones that have Timeout and MaxNrusers which come after Relpaths.
How can I accomplish this?
Thanks a lot,
Posted: Sat Mar 18, 2006 6:02 pm
Yes, it's possible you should use the search for:
Also "modifier S" should be checked.
BTW concerning your regular expression:
[ is a reserved char and you should escape it with \
Posted: Mon Mar 20, 2006 2:06 pm
Thanks a lot. Can you give me a step by step?
Where is this modifier S?
Posted: Mon Mar 20, 2006 2:26 pm
Sorry, step by step instructions:
Go to main menu - Action - Options - Batch Replace
check "Modifier S"
Go to Batch replace tab,
check on "Use regular expressions".
check "Just find" option
Put into the grid, search for:
Posted: Tue Mar 21, 2006 3:38 pm
I tried that and it doesnt work... I click find and nothing is found. Can you please double check for me if it works?
I checked S modifier and in batch replace chose JUST FIND and use regex. Clicked on Execute, nothing found.
Posted: Tue Mar 21, 2006 3:39 pm
Maybe I wasnt clear.
In the case below, I wanna find all the ones that after RELPATHS have a CR and [USER or something like that.
The goal is to find the ones that dont have timeout= and maxnrusers=
Thanks a lot!
Posted: Fri May 12, 2006 5:30 pm
The problem is the following:
AFR uses standard (classical) regular expressions. According to these
expressions you may create expressions that match to given text.
But you cannot create expressions that does not include the text.
So you may easily create expression which finds all users having
timeout= and maxnrusers= text. But it's impossible to find users not
having timeout= and maxnrusers= text.
What we are thinking about: maybe we may extent standard regular
expressions by adding the command to find text not having given
We recorded it into our ToDo list. We will send you email when it will
Posted: Fri May 12, 2006 6:13 pm
Well... we found how can we do that!
I said it's impossible to find text not having substrings.
But what we can do: take your INI file and remove from the users
Timeout= and MaxNrUsers=
what will be left in the INI file? Users not having Timeout= and
So you may use the software already now.
Step by step instructions.
When you need to find users not having Timeout= and MaxNrUsers=
your INI file and put it (copy) into temp folder. For example,
C:\Program Files\Advanced Find and Replace\test
Put the following two lines into Batch grid:
Modifier S should be ON in Options window (as described in the message above).
Select correct Search Path (your temp folder).
Press Execute button.
Let us know if you have any other questions.