This project has moved and is read-only. For the latest updates, please go here.

Searching for 2 strings

Apr 24, 2014 at 3:09 PM
I'd like to know how to search for two strings e.g 'Session x' and 'Session y' so that the output shows all lines in the log that contains 'Session x' and/or 'Session y'?

Cheers
J.
May 5, 2014 at 3:44 PM
AND is usually a problem with regular expression, OR is easy.

One way to get around this, would be to search for one, filter to tab, then search for other...
Jun 12, 2014 at 12:26 AM
Edited Jun 12, 2014 at 12:27 AM
Right, the OR can be acheived using the following regex syntax: "(string1|string2)"
In your case, (Session x|Session y) will do the trick (given you enabled the regular expression option) to find lines with one OR the other string.

The AND can be acheived with ".*(string1).*(string2).*"
In your case .*(Session x).*(Session y).* will find lines with both strings.