home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!math.fu-berlin.de!ira.uka.de!scsing.switch.ch!josef!avalon.physik.unizh.ch!lytras
- From: lytras@avalon.physik.unizh.ch (Apostolos Lytras)
- Subject: Recognizing first letter in a string
- Message-ID: <1993Jan28.135539.28930@ifi.unizh.ch>
- Sender: news@ifi.unizh.ch (USENET News Admin)
- Nntp-Posting-Host: avalon
- Organization: Informatik Club Uni Zurich
- Date: Thu, 28 Jan 1993 13:55:39 GMT
- Lines: 26
-
- Hi,
-
- I'd like to read addresses into a database which have been ocr'ed into
- an ascii file. The format of an address is something like this:
-
- (Dots are spaces, <cr> means carriage return.)
-
- Foo.Bar.Bas,.Fooers<cr>
- .....South Foo,4509...555.6666<cr>
- .....East Foo Too,3...777.9999<cr>
-
- And I'd like to get something like:
-
- Foo.Bar.Bas,.Fooers,South.Foo,4509,555.6666<cr>
- Foo.Bar.Bas,.Fooers,East.Foo.Too,3,777.9999<cr>
-
- Like this I sometimes have to handle multiple addresses under one name, how
- can I recognise whether a line begins with a space or with a letter?
-
- Thanks for your help.
- - Apostolos
- --
- Apostolos Lytras, Informatik Club der Uni Zuerich, Sys Admin
- Internet: lytras@ifi.unizh.ch | lytras@avalon.physik.unizh.ch
- lytras@amiga.physik.unizh.ch | jab@ezinfo.vmsmail.ethz.ch
- DECnet: EZINFO::JAB | PSI: PSI%47931149412::JAB
-