[REBOL] Re: newbie question
From: tomc:darkwing:uoregon at: 26-Feb-2004 15:07
it is better to say what you want
given input, expected output
people get by so nicely without REs some may not know them at all.
I suspect your second slash is off by a char but it hard to be sure :)
off hand I cant recall off hand if the trailing ? makes it longest or
shortest matching, also asumung ther is an inplicit 's' before first slash
.... so one way that may be on the right track iis
parse/all string [
some[thru "blah" mark:
opt["." copy ext to " "
(print ["."ext]
remove/part :mark length? ext
)
]
]
]
On Thu, 26 Feb 2004, Brondo, Greg wrote: