Re: [MacPerl] regular expressions and formatting text

2001-06-14 Thread Katherine Richmond
Bart, Thank you for taking the time to write the code and explain the perl. Your examples are excellent for a newbie like me. Kathy

Re: [MacPerl] regular expressions and formatting text

2001-06-14 Thread Katherine Richmond
I want to thank everyone for helping me with the regular expressions and text formatting. I really have learned so much from this list. Thanks again, Kathy

Re: [MacPerl] regular expressions and formatting text

2001-06-14 Thread Bart Lateur
On Thu, 14 Jun 2001 15:44:58 +0200, Detlef Lindenthal wrote: >Because of this error message > Perl 5.00564 required--this is only version 5.004, stopped. >I changed your script a bit; I replaced the lines > use Data::Dumper; > print "Record: $id\n", Dumper $record; >by the line >print "

Re: [MacPerl] regular expressions and formatting text

2001-06-14 Thread Detlef Lindenthal
Hi Bart, thank you for your good script. Because of this error message Perl 5.00564 required--this is only version 5.004, stopped. I changed your script a bit; I replaced the lines use Data::Dumper; print "Record: $id\n", Dumper $record; by the line print "\n\n(Record:) $id\n", jo

Re: [MacPerl] regular expressions and formatting text

2001-06-14 Thread Bart Lateur
On 13 Jun 2001 20:37:56 EDT, Katherine Richmond wrote: >I have written a perl program that parses a file and organizes the data into >records with 3 fields. Then this data is imported into FileMaker. Sample data is >below. The S numbers are unique identifiers. Every line with the same S number >b

Re: [MacPerl] regular expressions and formatting text

2001-06-14 Thread Thomas Wegner
At 20:37 Uhr -0400 13.06.2001, Katherine Richmond wrote: >Hi everyone, > >I'm learning to use regular expressions. Would you please give me advice about >how to proceed. > >Thanks, >Kathy > [...] >I am still left with ^ and CR-0. I can remove those. But, is there any way to >preserve the formatt

Re: [MacPerl] regular expressions and formatting text

2001-06-14 Thread Detlef Lindenthal
=Katherine Richmond wrote: > So I used this regular expression to replace 2 or more consecutive spaces with > one space: > > $textline =~ s/\s{2,}/ /g; =cut ## Maybe this can help you? ## Sample: $_ = "first line secondline third line 12345

Re: [MacPerl] regular expressions and formatting text

2001-06-13 Thread Katherine Richmond
Well it looks like much of the formatting I was trying to show you in my previous post was lost. I guess it was stripped out somewhere in the mail! FileMaker put boxes into the data where I had inserted the \r's. In spite of the lost formatting, I hope someone has had experience with this problem

[MacPerl] regular expressions and formatting text

2001-06-13 Thread Katherine Richmond
Hi everyone, I'm learning to use regular expressions. Would you please give me advice about how to proceed. Thanks, Kathy I have written a perl program that parses a file and organizes the data into records with 3 fields. Then this data is imported into FileMaker. Sample data is below. The S n