|
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 +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.