[Mono-list] Problem with Regex
Chris J. Breisch
Sat, 18 May 2002 06:03:40 -0500
You know...I knew that once. Had forgotten. Thanks.
Chris J. Breisch, MCSD, MCDBA
From: firstname.lastname@example.org [mailto:email@example.com] On
Behalf Of Dan Lewis
Sent: Saturday, May 18, 2002 3:51 AM
Subject: Re: [Mono-list] Problem with Regex
On Sat, 2002-05-18 at 05:58, Chris J. Breisch wrote:
> Is there something wrong with this? Our Regex seems to hate it.
> Regex NumberReg;
> NumberReg = new Regex ("^[+-]?\\d*\\.?\\d*(e?[+-]?\\d*)");
By the way to save yourself going completely mad when writing regexes,
designers had the foresight to include an uninterpolated string literal
NumberReg = new Regex( @"^[+-]?\d*\.?\d*(e?[+-]?\d*" );
This means that all escapes get passed directly to the regex parser.
useful when writing DOS-style paths.
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
Mono-list maillist - Monofirstname.lastname@example.org