Hi Stephane,
> I have the following text
> dog.eat.dog.eat.cat.eat.fish
> dog.eat.dog.eat.cat.eat.fish?but no
> dog.eat.dog.eat.cat.eat.fish"really
> dog.eat.dog.eat.cat.eat.fish
> dog.eat.dog.eat.cat.eat.fish"mmmm
> dog.eat.dog.eat.cat.eat.fish
> and am using the following code to parse it:
> html-code: [
> thru newline copy url to {?|"|newline} (append urls url) |
> copy txt to newline (append text txt)
> ]
> page: read %emails.txt
> parse page [ to newline copy url some html-code (append urls url) ]
> it freezes I tried many combination but just cannot get the whole txt
> only parts at the time or parts of the original file.
> help
> Stephane
How about:
page: read/lines %emails.txt
text: copy []
urls: copy []
;an just stands for alphanumeric
an-chars: charset [#"a" - #"z"] ;add more, this is a simple example
an-text: [some an-chars]
an-url: [an-text some ["." an-text]]
rule: [
copy url an-url (append urls url) any [
["?" | {"}] copy txt an-txt (append text txt)
]
]
foreach line page [parse line rule]
I'm not sure if this entirely addresses your question.
- Chris
- [REBOL] One disk OS + REBOL Re:(5) PAUL . MAY
- [REBOL] One disk OS + REBOL Re:(6) Petr . Krenzelok
- [REBOL] One disk OS + REBOL Re:(3) steve . shireman
- [REBOL] One disk OS + REBOL Re:(4) ryanc
- [REBOL] One disk OS + REBOL Re:(5) petr . krenzelok
- [REBOL] Multimedia quality (was) One disk OS + REBOL... petr . krenzelok
- [REBOL] Re: Multimedia quality (was) One disk OS... g . santilli
- [REBOL] Multimedia quality (was) One disk OS... petr . krenzelok
- [REBOL] Windows Scripting Host rryost
- [REBOL] parsing text???? akhar
- [REBOL] Windows Scripting Host Re: chris
- [REBOL] Windows Scripting Host Re: brian . hawley
- [REBOL] Windows Scripting Host Re:(2) jhagman
- [REBOL] Windows Scripting Host Re:(3) ryanc
- [REBOL] Multimedia quality (was) One dis... steve . shireman
- [REBOL] Re: Multimedia quality (was) One... g . santilli
- [REBOL] Multimedia quality (was) One dis... holger
- [REBOL] Re: Multimedia quality (was) One... kolla
- [REBOL] Multimedia quality (was) One dis... allen
- [REBOL] Smooth scrolling. What's requier... Petr . Krenzelok
- [REBOL] Smooth scrolling. What's requier... jhagman
