Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!inria!ircam!rubenst From: rubenst@ircam.ircam.fr (Brad Rubenstein) Newsgroups: comp.lang.perl Subject: Re: Pattern Substitution Question Keywords: pattern Message-ID: <1990Nov1.181215.15690@ircam.ircam.fr> Date: 1 Nov 90 18:12:15 GMT References: <1086@dg.dg.com> Organization: IRCAM, Paris (France) Lines: 17 In article <1086@dg.dg.com> blurie@einstein.webo.dg.com writes: >Here's a question, whose answer I'm sure is going to be trivial, that I've >been trying to resolve for days. Given input like the following: > > Lurie;Benjamin;1212 Nowhere Road;(617) 923-0000;(w) (000) 202-2343 > >I would like to translate it to: > > Benjamin Lurie;1212 Nowhere Road;(617) 923-0000;(w) (000) 202-2343 > s/^([^;]*);([^;]*)/$2 $1/ Brad -- Brad Rubenstein, rubenst@ircam.fr IRCAM - Service Syste`me