<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
hi, <BR>
<BR>
i have a set of data and using re to extract it into array. however i only get positive value, how to extract the whole value including the -ve sign? <BR>
For eg: <BR>
<BR>
Platform: PC<BR>Tempt : 25<BR>TAP0 :0<BR>TAP1 :1<BR>
+++++++++++++++++++++++++++++++++++++++++++++<BR>Port Chnl Lane EyVt EyHt<BR>+++++++++++++++++++++++++++++++++++++++++++++<BR>0 1 1 75 55<BR>0 1 2 10 35<BR>0 1 3 25 35 <BR>0 1 4 35 25<BR>0 1 5 10 -1<BR>+++++++++++++++++++++++++++++++++++++++++++++<BR>Time: 20s<BR>
<BR>
When i run my code, i get 1 instead of -1 in the last line. here is my code. pls advise. i'm using Python 2.5 and Win XP. tq<BR>
##code###<BR>
import re<BR>
file = open("C:/Python25/myscript/plot/sampledata.txt", "r")<BR>
x1 = []<BR>y1 = []<BR>y2 = []<BR>for line in file:<BR> numbers = re.findall("\d+", line)<BR> print numbers<BR>                                            </body>
</html>