Page 1 of 1

Multiplr serach arguments

Posted: Thu Aug 07, 2008 1:00 am
by jcarducci
Simple question, simple method?

How do I find multiple strings in a file with one command? Regular expression? Example?

Example:
Find "Apple", "Orange"

in one or multiple files.

Thanks for the help!

Jerry

Posted: Thu Aug 07, 2008 2:07 am
by ak47wong
Jerry,

Simple question, simple answer:

If you are using POSIX regular expression syntax (see Configure->Preferences->Editor), search for Apple|Orange

If you are not using POSIX syntax, search for Apple\|Orange

Make sure "Regular expression" is selected in the Find or Find In Files dialog.

Andrew