View Full Version : Filter on multiple strings
07-31-2002, 11:09 AM
Does anybody know how to filter on more than one string in the CODE editor? i.e. show only lines that contain string1 or string2 / string1 and string2? If anyone has a macro to do this, I would appreciate if you could post the code. Thanks!
07-31-2002, 12:33 PM
After posting this I figured out how to do it with regular expressions: 1) Check "pattern match" checkbox on filter dialog 2) Filter with | between each string to find: i.e.: string1|string2 This finds any line with string 1 OR string2 I'm not sure of the best way to do AND, but this seems to work: string1.*string2|string2.*string1 The | is used to search for string1 before string2 OR string2 before string1. . means any character, and the * following it means zero or more occurences. If anyone knows a way to specify AND regardless of relative string positions, please let me know! If you want to know more about regular expressions, click help on the filter dialog for more info. - John V "John Valance" <email@example.com> wrote in message news:firstname.lastname@example.org... > Does anybody know how to filter on more than one string in the CODE editor? > i.e. show only lines that contain string1 or string2 / string1 and string2? > If anyone has a macro to do this, I would appreciate if you could post the > code. > > Thanks! > >
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.