Regular Expression Search in command line mode

General discussions about Advanced Find and Replace
Post Reply
seble
Posts: 2
Joined: Tue Sep 06, 2011 1:18 pm
Location: Vienna

Regular Expression Search in command line mode

Post by seble » Tue Sep 06, 2011 1:23 pm

Hi,

I'm trying to perform a search in commandline where the -searchfor string shall be interpreted as a regular expression. In the documentation I cannot find out how to do that.

Please don't tell me that this is not possible!!!


eg: AFR.exe -min -execute:find -searchfor te['+\s]*st

seble
Posts: 2
Joined: Tue Sep 06, 2011 1:18 pm
Location: Vienna

Re: Regular Expression Search in command line mode

Post by seble » Tue Sep 13, 2011 2:35 pm

OK, I got it.

You can set RegExp in the GUI mode and save the configuration in the Action menu.

You can make your own cfg file in Action - Save Configuration as...
The cfg file can always be edited with any text editor. The RegEx options are:

FindUseRegExp=true (which represents the RegEx in the Action - Options... - Find Menu)
QueryType=4 (which represents the RegExp RadioButton option on the main Find GUI)

I did not figure out the difference between these two options so far. But when set like above regex search is working.

When calling the afr via commandline you set the -config [PATH]\default.cfg

Attention, when MinimizeToTray=true AFR does not exit even if you set -exit in the commandline.

Post Reply

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest