C
C.
Hi,
Trying to whip up a Regex pattern that will match the word Directive
followed by 4 or more numbers that does NOT end with Home Page.
Directive 1234 hello world //Should match
Directive 1234 hellow world Home Page //Should not match
I tried:
Regex.IsMatch(data, @"^Directive \d\d\d\d.*[^(Home Page)]$",
RegexOptions.IgnoreCase)
but it is not working properly.
Thanks,
Chris
Trying to whip up a Regex pattern that will match the word Directive
followed by 4 or more numbers that does NOT end with Home Page.
Directive 1234 hello world //Should match
Directive 1234 hellow world Home Page //Should not match
I tried:
Regex.IsMatch(data, @"^Directive \d\d\d\d.*[^(Home Page)]$",
RegexOptions.IgnoreCase)
but it is not working properly.
Thanks,
Chris