here is your substitution.. (haven't tested it but should work). s/,([^,]*)$/, or$1/;
> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: None > To: [EMAIL PROTECTED] > Subject: Matching last comma (not last character) > > > Hi, > > I've got a comma separate list, like: > > apples, oranges, pears > > I'd like to make it reads: > > apples, oranges, or pears > > My guess was to use s/// to turn the last ',' into ', or' > Any ideas? > > Thanks > > Tristan > > > > > _______________________________________________________ > sent via the murky.net webmail hegemony > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > ---------------------------------------------------------------------------- -------------------- The views and opinions expressed in this email message are the sender's own, and do not necessarily represent the views and opinions of Summit Systems Inc. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]