Regex question
- From: "tshad" <tfs@xxxxxxxxxxxxxx>
- Date: Fri, 19 Dec 2008 17:14:17 -0800
This is really a regex question.
I am wonding if anyone knows a good Regex expression that would pull a valid
date from a string.
I have used:
strValue = Regex.Replace(valueIn, @"[^\d/]", "");
which works most of the time.
But I have some cases where I have strings like:
05/07/08(-4%)
09/19/08 DOM 55
09/19/2008 DOM 53
FOR 09/15/08 -23
Thanks,
Tom
.
- Follow-Ups:
- Re: Regex question
- From: Jeff Johnson
- Re: Regex question
- From: Arne Vajhøj
- Re: Regex question
- From: tshad
- Re: Regex question
- Prev by Date: Linq.Table<variable> is it possible
- Next by Date: Re: Regex question
- Previous by thread: Linq.Table<variable> is it possible
- Next by thread: Re: Regex question
- Index(es):
Relevant Pages
|