> I apologize for the confusion, that was in response to Frank's suggestion > that didn't have the leading '/' question-marked.
Sorry...I misunderstood your OP...here is a solution that should work $list =~ s!(/)?\b$name\b(/)?!$2 ? ($1||'') : ($2||'')!e; Tanton -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]