Searching for 2 strings

Apr 24, 2014 at 2: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'?

May 5, 2014 at 2: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 11, 2014 at 11:26 PM
Edited Jun 11, 2014 at 11:27 PM
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.