but what if I don't want to include the in 'name?
parse line1 [thru {"} copy name [to {} 4 digits {} (print name)] to
end]
-| Note the 'thru changed to 'to
== false
That doesn't make sense.
'to recognises the "" and stops just before the "" in the
SpliFF wrote:
line1: {Lets find "Julie1234"}
parse line1 [thru {"} copy name [thru {} 4 digits {} (print name)] to
end]
Julie1234
== true
but what if I don't want to include the in 'name?
parse line1 [thru {"} copy Name to "" "" 4 digits {"} end (print
Name)]
Julie
== true
A nicer
Howdy,
I'll address your immediate questions first then make a stab at explaining
what is happening.
digits: charset "0123456789"
== make bitset! #{FF030... [snip] ...000}
line1: {Lets find "Julie1234"}
parse line1 [thru {"} copy name [thru {} 4 digits {} (print name)] to
Thanks Peter and Andrew, you both know your 'parse. Unfortunately your answers didn't
help me with the first issue. Perhaps I need to explain the problem more clearly. I
have
a large collection of log files generated by a Counter-Strike games server. When a user
connects a line is generated that
NOTE: I think my last reply was blocked due to having one 'Re:' too many
in the sunbject line. If you already read this please ignore.
Message Begins
Thanks Peter and Andrew, you both know your 'parse. Unfortunately your
answers didn't
help me with the first
Because the game doesn't check the characters being inserted in the name the grammar of
the logfile is not correct and not parseable thru a left to right parser. (not with
this
'parse function).
This works fine if the plater does not have a name with the string {"}
r-tag: [ "" thru "" ]
parse
When I perform the following:
append port s
a single LF is converted into CRLF
How can I prevent this from happening ?
Phil.
**
This email and any attachments may be confidential and the subject of
legal professional
Found the answer open all ports with binary switch !!
-Original Message-
From: Hayes Philip [mailto:[EMAIL PROTECTED]]
Sent: 14 December 2000 12:11
To: 'Rebol List Server'
Subject: [REBOL] LF converted to CRLF when I append string to port ?
When I perform the following:
append port
Hi Brett,
here's my take, assuming that "WON:" is sure not to be in the name-string
(and it is the only thing you can be sure about ...
line1: {Lets find "Julie1234WON:90966776"}
main-rule: [ (next-part: "") thru {"} copy name to {} some sub-rule to end ]
sub-rule: [ "WON:" (print name) to end
Hi folks,
I'd like to write a backup script that backs up the files on an FTP
site. This because my cheap mass hosting has already dumped
everyone's files. :-/
Anyhow, there's no shortage of recursive directory routines lying
around the place. Unfortunately they don't work with web sites. The
Shannon,
If name has a value before the parse, then there is no
error and it returns true.
Can you check from a fresh start?
digits: charset "0123456789"
line1: {Lets find "Julie1234"}
parse line1 [thru {"} copy name [thru {} 4 digits {} (print name)] to end]
Anton.
- parse line1 [thru {"}
Anton,
Way ahead of you, although your efforts are commendable nonetheless.
Actually your efforts are abit better than mine for you published yours.
Although...did I post an early version of my shell.r to one of the REBOL
repositories?
Anyway, I took your pattern matching from the directory
On Thu, Dec 14, 2000 at 01:42:41PM +, Mat Bettinson wrote:
Hi folks,
I'd like to write a backup script that backs up the files on an FTP
site. This because my cheap mass hosting has already dumped
everyone's files. :-/
Anyhow, there's no shortage of recursive directory routines lying
Heya Holger,
HK No, REBOL caches and reuses the FTP control connection across
HK subsequent accesses to the same host and directory.
But doesn't actually close any. Is there a way of forcing them closed?
How are you supposed to implement some sort of recursive system with
high-level FTP when
Mat Bettinson wrote:
Assuming for a second that I buy this argument, and I'm really not
sure I do, then how would you recommend a recursive directory scan be
implemented in Rebol?
You being The Fingers dare doubt the knowledge of The Holger? tsk ;)
Deryk
--
To unsubscribe from this list,
I hate to butt in but I just stumbled across REBOL while surfing thru an ice storm
here in Texas. If you would like an example of 'A PARSE' function take a look at
OBJREXX. www2.hursley.ibm.com
For string handling, it's hard to beat REXX on any box.
The first thing that impressed me about
Heya Deryk,
Assuming for a second that I buy this argument, and I'm really not
sure I do, then how would you recommend a recursive directory scan be
implemented in Rebol?
DR You being The Fingers dare doubt the knowledge of The Holger? tsk ;)
Hehe, I removed my brackets "(and I'm sure I'm
On Thu, Dec 14, 2000 at 04:40:21PM +, Mat Bettinson wrote:
Heya Holger,
HK No, REBOL caches and reuses the FTP control connection across
HK subsequent accesses to the same host and directory.
But doesn't actually close any. Is there a way of forcing them closed?
I'll double-check
Sascha wrote:
sorry, i certainly could 've seen the solution - but couldn't find it now
;-)
f: func [w ] [either [ value? 'w ] [ do 'w][print "no way..."]]
value? 'm
== false
x
== 10
f x
== 10
f m
** Script Error: m has no value.
** Where: f m
f 'm
== m
f: func ['w] [either
Yes. FTP will close the old connection to a given host if a new one
is made but in a different directory. That is also the same behavior
I see here with the latest experimental (2.4.39 on Linux). I also
watched my netstat and only one connection stayed active. The only
situation where you
Why not read/lines and then use
entry: parse line {"}
== ["L" "09/22/2000" "-" "15:49:22:" "Usyd H4XX0R124WON:20007739"
"connected," "ip" "160.34.64.112"]
This will give you a consistent 8 part format. Can then use
entry/1 entry/2 etc for simple access to the results.
Cheers,
Allen K
--
I am wondering if anyone has tackled encryption with REBOL at all? If so,
any resources, docs and etc??
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.
On Thu, 14 Dec 2000 15:33:33 -0600
"Jarrett Wold" [EMAIL PROTECTED] wrote:
I am wondering if anyone has tackled encryption with
REBOL at all? If so,
any resources, docs and etc??
Rebol/Express ?
--
Graham Chiu
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED]
It would be very nice if Rebol ran on the new Amiga:
http://www.amiga.com/press/zine/4-17-00/AW7.htm
Andrew Martin
--
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.
Heya sterling,
src If you are seeing different results... like multiple command ports
src open to the same host, please send as much info as you can into
src feedback as a bug report so we can track down the problem.
If we've established that this is not the proper behavior then
absolutely, I
Heya Holger,
HK I'll double-check with Sterling, but AFAIK current experimental versions
HK do close the control connection first if another connection to the same
HK host has to be opened. At least that is the behavior I get here. Which
HK version are you using ?
Command, generally.
HK "cd
Heya Al,
ABxcn It would be very nice if Rebol ran on the new Amiga:
ABxcn http://www.amiga.com/press/zine/4-17-00/AW7.htm
Call my cynical (I did my stint as an Amiga advocate for a number of
years) but does that page not just seem like the same pile of
enthusiastic idealistic rhetoric that has
In anticipation of putting up a site with a REBOL script library, I was
playing around with Carl's %build-lib.r which can be found here...
http://demo.rebol.net/cgi-bin/showfile.r?file=build-
lib.rkeywords=[{library}]#search-1
Do you REALIZE how sweet this script is? As long as your scripts
Hi Ingo,
Good one! I stand corrected, you don't need something evil to achieve it,
just another way of looking at it.
Your code fails on the fourth example though, because name has a value of
none. Just making a small change, it works
sub-rule: [
"WON:" (print name) to end |
(
ABxcn It would be very nice if Rebol ran on the new Amiga:
ABxcn http://www.amiga.com/press/zine/4-17-00/AW7.htm
Call my cynical (I did my stint as an Amiga advocate for a number of
years) but does that page not just seem like the same pile of
enthusiastic idealistic rhetoric that has
Hi Brett,
found an error in my last post, it didn't work for ""
line1: {Lets find "Julie1234WON:90966776"}
main-rule: [ (next-part: "") thru {"} copy name to {} some sub-rule to end ]
sub-rule: [ "WON:" (print name) to end
| (if next-part "" [if none? next-part [next-part: ""]
31 matches
Mail list logo