RE: design - help

2003-10-13 Thread Steve Massey
All - especially James/Rob/John and (Shawn for showing how to describe ...) ;) coding ideas work well Big thanks for your time taken to help... Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: design - help

2003-10-13 Thread John W. Krahn
Steve Massey wrote: > > below is sample of my data, OK forget my simplifying, between the data sets > the count can vary, either 23 or 24, number of data sets is knowm - 4, > > ===Data > > 1 (5) ##consider this line number known,, 23 lines to next >

RE: design - help

2003-10-13 Thread Shawn O'Donnell
At 06:53 PM +0100 10/13/03, Steve Massey wrote: a line like2 (5)cannot be expected, what can be expected is that after a count of 23 there will be the next number OR 22 there will be a blank line followed by the next sequence number. So the line will just be Aha! Writing code to parse

Re: design - help

2003-10-13 Thread Rob Dixon
James Edward Gray II wrote: > > Looks like Rob beat me to the draw this time "Go ahead. Make my day!" > but I thought I would add one little tidbit. > > On Monday, October 13, 2003, at 12:15 PM, Rob Dixon wrote: > > > if ( /(\d+)\s+\(\d+\)/ ) { > > I think at least anchoring the pattern to t

Re: design - help

2003-10-13 Thread James Edward Gray II
On Monday, October 13, 2003, at 12:53 PM, Steve Massey wrote: Rob/James Thanks for the input guys, still not quite there, damm nice code though... Well, well, aren't you a problem child. :) Just kidding. the data files I process are typically 3000 lines long and full of blank lines, i use H

RE: design - help

2003-10-13 Thread Steve Massey
uld have worked with it. I look forward to your thoughts, above all else it's making me think how I approach this. Steve -Original Message- From: James Edward Gray II [mailto:[EMAIL PROTECTED] Sent: 13 October 2003 18:26 To: [EMAIL PROTECTED] Subject: Re: design - help Looks lik

Re: design - help

2003-10-13 Thread James Edward Gray II
Looks like Rob beat me to the draw this time, but I thought I would add one little tidbit. On Monday, October 13, 2003, at 12:15 PM, Rob Dixon wrote: if ( /(\d+)\s+\(\d+\)/ ) { I think at least anchoring the pattern to the front of the line is a good idea, just so we don't match some arbitra

Re: design - help

2003-10-13 Thread Rob Dixon
Steve Massey wrote: > > below is sample of my data, OK forget my simplifying, > between the data sets the count can vary, either 23 or > 24, number of data sets is knowm - 4, That's better! Thanks Steve. I think this will do what you need, but doesn't check the number of information blocks. It al

Re: design - help

2003-10-13 Thread Rob Dixon
Steve Massey wrote: > > Thanks for trying to help so far, I think i need to explain a > bit more. The file contains varying data, empty, numeric, text > data is processed in between the ordered numbers say ..1 2 3 4, > the only > thing I can be certain of is, > > 1) line 3 will contain number one(

RE: design - help

2003-10-13 Thread Steve Massey
: Re: design - help On Monday, October 13, 2003, at 11:04 AM, Steve Massey wrote: > Rob/James > > Thanks for trying to help so far, I think i need to explain a bit more. Yeah, I appreciate your attempts to simplify it for us, but in the process, I think you changed the problem. ;) &

Re: design - help

2003-10-13 Thread James Edward Gray II
On Monday, October 13, 2003, at 11:04 AM, Steve Massey wrote: Rob/James Thanks for trying to help so far, I think i need to explain a bit more. Yeah, I appreciate your attempts to simplify it for us, but in the process, I think you changed the problem. ;) The file contains varying data, empty

RE: design - help

2003-10-13 Thread Steve Massey
mber found, and pushing the line numbers into an array for further processing, I just have a mental block on how to deal with the varying increments Thanks Steve -Original Message- From: Rob Dixon [mailto:[EMAIL PROTECTED] Sent: 13 October 2003 16:40 To: [EMAIL PROTECTED] Subject: Re: des

Re: design - help

2003-10-13 Thread Rob Dixon
Steve Massey wrote: > > I hear what your saying, but for this snippet I just want to > cycle through the list, checking the number is correct either > being 3or4 spaces between them, a print out at the end would > be fine. My real data, has ifo on lines in between numbers, but > the count between

Re: design - help

2003-10-13 Thread James Edward Gray II
On Monday, October 13, 2003, at 09:53 AM, Steve Massey wrote: James I hear what your saying, but for this snippet I just want to cycle through the list, checking the number is correct either being 3or4 spaces between them, a print out at the end would be fine. My real data, has ifo on lines

RE: design - help

2003-10-13 Thread Steve Massey
Edward Gray II [mailto:[EMAIL PROTECTED] Sent: 13 October 2003 15:39 To: Steve Massey Cc: [EMAIL PROTECTED] Subject: Re: design - help On Monday, October 13, 2003, at 09:28 AM, Steve Massey wrote: > Hi All Howdy. > my problem is one of progam concept, a data file is as below, my code &g

Re: design - help

2003-10-13 Thread Rob Dixon
Steve Massey wrote: > > my problem is one of progam concept, a data file is as below, > my code (which is not doing what I want it to do is below) > > I want to parse a file with a known 3 blank lines to number 1, > then for each other number it could be either 3 or 4 blank lines. > Each number has

Re: design - help

2003-10-13 Thread James Edward Gray II
On Monday, October 13, 2003, at 09:28 AM, Steve Massey wrote: Hi All Howdy. my problem is one of progam concept, a data file is as below, my code (which is not doing what I want it to do is below) In order to help with your concept, I think I need to understand it a little better. I want to p

design - help

2003-10-13 Thread Steve Massey
Hi All my problem is one of progam concept, a data file is as below, my code (which is not doing what I want it to do is below) I want to parse a file with a known 3 blank lines to number 1, then for each other number it could be either 3 or 4 blank lines. Each number has to be checked to see it'