Re: ReplaceAll and BlankNullSequence
- To: mathgroup at smc.vnet.net
- Subject: [mg100532] Re: ReplaceAll and BlankNullSequence
- From: Albert Retey <awnl at gmx-topmail.de>
- Date: Sun, 7 Jun 2009 05:00:47 -0400 (EDT)
- References: <h0d6tt$sqe$1@smc.vnet.net>
Philip R Dutton wrote:
> I keep getting {1} when I try to do a simple replacement with this code:
>
> {kevinbacon, iscool} /. {x___, iscool} -> {x}
>
> Why doesn't the output show {kevinbacon} ???
>
>
> I am so confused...
it gives {kevinbacon} for me, I guess you should do
kevinbacon=.
x=.
and retry...
hth,
albert