[Mono-list] Problem with Regex

Chris J. Breisch cjbreisch@altavista.net
Fri, 17 May 2002 23:58:24 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C1FDFE.BC44F1C0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Putting aside for the moment whether or not you'd ever really want to do
such a thing.

 

Is there something wrong with this?  Our Regex seems to hate it.

 

Regex NumberReg;

NumberReg = new Regex ("^[+-]?\\d*\\.?\\d*(e?[+-]?\\d*)");

 

                                    -chris

 

Chris J. Breisch, MCSD, MCDBA

 

 


------=_NextPart_000_0008_01C1FDFE.BC44F1C0
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Verdana;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:9.0pt;
	font-family:Verdana;}
h1
	{margin-top:12.0pt;
	margin-right:0in;
	margin-bottom:3.0pt;
	margin-left:0in;
	text-align:center;
	page-break-after:avoid;
	font-size:16.0pt;
	font-family:Arial;}
h2
	{margin-top:12.0pt;
	margin-right:0in;
	margin-bottom:3.0pt;
	margin-left:0in;
	page-break-after:avoid;
	font-size:14.0pt;
	font-family:Arial;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p.Code, li.Code, div.Code
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";
	color:black;}
p.E-mail, li.E-mail, div.E-mail
	{margin:0in;
	margin-bottom:.0001pt;
	text-autospace:none;
	font-size:9.0pt;
	font-family:Verdana;
	color:maroon;}
span.NormalFont
	{font-family:Verdana;}
span.EmailStyle20
	{font-family:Verdana;
	color:maroon;
	font-weight:normal;
	font-style:normal;
	text-decoration:none none;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D1 color=3Dmaroon face=3DVerdana><span
style=3D'font-size:9.0pt;color:maroon'>Putting aside for the moment =
whether or
not you&#8217;d ever really want to do such a =
thing&#8230;</span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dmaroon face=3DVerdana><span
style=3D'font-size:9.0pt;color:maroon'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dmaroon face=3DVerdana><span
style=3D'font-size:9.0pt;color:maroon'>Is there something wrong with =
this?&nbsp;
Our Regex seems to hate it.</span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dmaroon face=3DVerdana><span
style=3D'font-size:9.0pt;color:maroon'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dmaroon face=3DVerdana><span
style=3D'font-size:9.0pt;color:maroon'>Regex =
NumberReg;</span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dmaroon face=3DVerdana><span
style=3D'font-size:9.0pt;color:maroon'>NumberReg =3D new Regex =
(&quot;^[+-]?\\d*\\.?\\d*(e?[+-]?\\d*)&quot;);</span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dmaroon face=3DVerdana><span
style=3D'font-size:9.0pt;color:maroon'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dmaroon face=3DVerdana><span
style=3D'font-size:9.0pt;color:maroon'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -chris</span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dmaroon face=3DVerdana><span
style=3D'font-size:9.0pt;color:maroon'>&nbsp;</span></font></p>

<p class=3DMsoNormal><b><font
color=3Dmaroon><span style=3D'color:maroon;font-weight:bold'>Chris J. =
Breisch, <i><span
style=3D'font-style:italic'>MCSD, MCDBA</span></i></span></font></b></p>

<p class=3DMsoNormal><font color=3Dmaroon><span =
style=3D'color:maroon'>&nbsp;</span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3DVerdana><span =
style=3D'font-size:9.0pt'>&nbsp;</span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0008_01C1FDFE.BC44F1C0--