MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » November 1999

RE: Extract number from character field


  • Subject: RE: Extract number from character field
  • From: Carl Friedberg <friedberg@xxxxxxxxxxx>
  • Date: Mon, 8 Nov 1999 16:59:39 -0500

fixed

And, in that case, the perl script flat out gives you two separate array
members $num[0] contains 12; $num[1] contains 345. A generalized input
semantics parser, something like you get with most language runtimes, is
non-trivial, I would suspect... just my useless 2cents

Carl Friedberg carl@comets.com

-----Original Message-----
From: Jeff Crosby [mailto:jlcrosby@fwi.com]
Sent: Monday, November 08, 1999 4:03 PM
To: MIDRANGE-L@midrange.com
Subject: Re: Extract number from character field


> > But what if the source string was "12,435"?

I'm sorry, I didn't explain myself well enough (or didn't read your
original post closely enough to see the positions were hardcoded).  What
I meant was, what if sometimes the commas are there and sometimes not?
As in "12345" one time and "12,345" the next.

-Jeff
jlcrosby@fwi.com
Voice: 219-422-7531  Fax: 219-426-0212

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact