HIGHLIGHTED MATCHES:
Is there a way to do that in Outlook Advanced Search, or does anyone know a tool I can use to do that type of search? I looked at Lucid8's Digiscope, but their tech support said they can't do that refined a search either without using regular expressions. I'm not familiar with writing regex and my search involves 31 variables, so don't have time to learn regex well enough to write the proper string.
Or, can someone tell me how to write a regex that will find Bob, or Bob's or Jones AND test1, or test2, or test3...test28; and preferably not include any word containing test1, or test 2, etc - just the specific word? In other words, it would find an email that contained Bob and test1, or Bob and test10, or Bob's and test15 - but wouldn't return results for Bobby's and test1 or Bob's and test1234.
RESULTS:
Execution Time(sec.):
0.000028
Raw Match Pattern:
^(?=.*\bBob\b)(?=.*\btest1\b).*?(?:\b(Bob|test1)\b)
VB.NET Code Example:
Imports System.Text.RegularExpressions
Module Module1
Sub Main()
Dim sourcestring as String = "replace with your source string"
Dim re As Regex = New Regex("^(?=.*\bBob\b)(?=.*\btest1\b).*?(?:\b(Bob|test1)\b)",RegexOptions.IgnoreCase OR RegexOptions.Singleline)
Dim mc as MatchCollection = re.Matches(sourcestring)
Dim mIdx as Integer = 0
For each m as Match in mc
For groupIdx As Integer = 0 To m.Groups.Count - 1
Console.WriteLine("[{0}][{1}] = {2}", mIdx, re.GetGroupNames(groupIdx), m.Groups(groupIdx).Value)
Next
mIdx=mIdx+1
Next
End Sub
End Module
$matches Array:
(
[0] => Array
(
[0] => Is there a way to do that in Outlook Advanced Search, or does anyone know a tool I can use to do that type of search? I looked at Lucid8's Digiscope, but their tech support said they can't do that refined a search either without using regular expressions. I'm not familiar with writing regex and my search involves 31 variables, so don't have time to learn regex well enough to write the proper string.
Or, can someone tell me how to write a regex that will find Bob
)
[1] => Array
(
[0] => Bob
)
)