Regex pattern problem
- From: "C." <hardieca@xxxxxxxxxxx>
- Date: Thu, 29 May 2008 08:11:30 -0700 (PDT)
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
.
- Follow-Ups:
- Re: Regex pattern problem
- From: Arne Vajhøj
- Re: Regex pattern problem
- From: jj
- Re: Regex pattern problem
- Prev by Date: Re: .NET does nothing on target machine
- Next by Date: Re: .NET apps not being recognized as being in the Intranet Zone
- Previous by thread: Using datetimekind. Is there supposed to be a conversion?
- Next by thread: Re: Regex pattern problem
- Index(es):
Loading