RE: Parsing a string [regexp]

2005-11-08 Thread Wagner, David --- Senior Programmer Analyst --- WGO
radhika wrote: > Hi, > My string looks like this B=99.99+ > > I have split this to just get the 99.99+ part. > How can I get the $1 to be numeric and $2 to just contain the +. > Assume could be minus so did for plus or minus and has the b= or whatever: if ( /^.=([^+\-]+)(.)/ ) {

Parsing a string [regexp]

2005-11-08 Thread radhika
Hi, My string looks like this B=99.99+ I have split this to just get the 99.99+ part. How can I get the $1 to be numeric and $2 to just contain the +. Thanks, Radhika -- It is all a matter of perspective. You choose your view by choosing where to stand. Larry Wall --- -- To unsubscribe, e-mai