Re: reg ex problem

2006-06-27 Thread Ryan Moszynski
thanks for the help, that did the trick On 6/27/06, Ryan Moszynski <[EMAIL PROTECTED]> wrote: i have this string extracted from a text file i'm writing a program to process: test_freq = 1.0001; and i have to extract the "1.0001" i can't count on the whitspace being where it now is. I wo

Re: reg ex problem

2006-06-27 Thread John Ackley
Ryan Moszynski wrote: i have this string extracted from a text file i'm writing a program to process: test_freq = 1.0001; and i have to extract the "1.0001" i can't count on the whitspace being where it now is. I would like to change this line of perl $getTestFRQ =~ s/\D+//g; so that

Re: reg ex problem

2006-06-27 Thread Dr.Ruud
"Ryan Moszynski" schreef: > i have this string extracted from a text file i'm writing a program > to process: > > test_freq = 1.0001; > > and i have to extract the "1.0001" > > i can't count on the whitspace being where it now is. > > I would like to change this line of perl > > $getTestFRQ =

RE: reg ex problem

2006-06-27 Thread Timothy Johnson
atch only a number that is a n rvalue. -Original Message- From: Ryan Moszynski [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 1:27 PM To: beginners@perl.org Subject: reg ex problem i have this string extracted from a text file i'm writing a program to process: test_freq

RE: reg ex problem

2006-06-27 Thread Wagner, David --- Senior Programmer Analyst --- WGO
Ryan Moszynski wrote: > i have this string extracted from a text file i'm writing a program > to process: > > test_freq = 1.0001; > > and i have to extract the "1.0001" > > i can't count on the whitspace being where it now is. > > I would like to change this line of perl > > $getTestFRQ

reg ex problem

2006-06-27 Thread Ryan Moszynski
i have this string extracted from a text file i'm writing a program to process: test_freq = 1.0001; and i have to extract the "1.0001" i can't count on the whitspace being where it now is. I would like to change this line of perl $getTestFRQ =~ s/\D+//g; so that instead of killing all no