Re: Looking for Form Feeds

2005-01-24 Thread John Machin
Greg Lindstrom wrote: > Hello- > I have a file generated by an HP-9000 running Unix containing form feeds > signified by ^M^L. I am trying to scan for the linefeed to signal > certain processing to be performed but can not get the regex to "see" > it. Suppose I read my input line into a variable

Re: Looking for Form Feeds

2005-01-24 Thread Fredrik Lundh
Terry Hancock wrote: >> I also tried to create a ^M^L (typed in as Q M L) but that >> gives me a syntax error when I try to run the program (re does not like >> the control characters, I guess). Is it possible for me to pull out the >> formfeeds in a straightforward manner? > > I suspect you sho

Re: Looking for Form Feeds

2005-01-24 Thread Terry Hancock
On Monday 24 January 2005 03:32 pm, Greg Lindstrom wrote: > I also tried to create a ^M^L (typed in as Q M L) but that > gives me a syntax error when I try to run the program (re does not like > the control characters, I guess). Is it possible for me to pull out the > formfeeds in a straightfo

Re: Looking for Form Feeds

2005-01-24 Thread Erik Max Francis
Greg Lindstrom wrote: I have a file generated by an HP-9000 running Unix containing form feeds signified by ^M^L. I am trying to scan for the linefeed to signal certain processing to be performed but can not get the regex to "see" it. Suppose I read my input line into a variable named "input"

Re: Looking for Form Feeds

2005-01-24 Thread Fredrik Lundh
Greg Lindstrom wrote: > I have a file generated by an HP-9000 running Unix containing form feeds > signified by ^M^L. I am > trying to scan for the linefeed to signal certain processing to be performed > but can not get the > regex to "see" it. Suppose I read my input line into a variable na

Looking for Form Feeds

2005-01-24 Thread Greg Lindstrom
Hello- I have a file generated by an HP-9000 running Unix containing form feeds signified by ^M^L. I am trying to scan for the linefeed to signal certain processing to be performed but can not get the regex to "see" it. Suppose I read my input line into a variable named "input" The following