Regex to do /<match>/<match>/<replace>?

From: Ian Marlier (marlieri_at_studentuniverse.com)
Date: 07/27/04


Date: Mon, 26 Jul 2004 21:17:57 -0400
To: "beginners@perl.org" <beginners@perl.org>

Hi, all --

I've got another RegEx question, a follow-up to one that I asked earlier
today:

Given a string that looks like this:
"This is a (string of words) that go together"

I need to turn it into this:
"This is a (stringofwords) that go together"

Which is to say, I need to match one set of characters (the parentheses) and
then do a reg-ex operation on another (the spaces).

Thoughts?



Relevant Pages

  • Re: FIND function with multi criteria
    ... why not simply search for 'FAS'? ... Frank Kabel ... > Follow-up thought. ... > String to be searched in column f ...
    (microsoft.public.excel.misc)
  • What does top post means and how to avoid it
    ... How to avoid it (I use pine with reply as follow-up or something similar) ... On 31 Aug 2004, Chris F.A. Johnson wrote: ... how can i attach this formatted value to a string ...
    (comp.unix.questions)
  • Re: ...Then what can I USE
    ... Radith wrote: ... > In follow-up to my previous post; ... Then post as a reply to your previous, and quote it adequately. ... you have to do is pass the resulting string to free when you are ...
    (comp.lang.c)
  • Re: need Help Regex
    ... I am not sure if this is the place to post a REGEX question if not, ... Given a string like: "Boston. ... "cosume" MA in the first macth so I do not have a second match. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: need Help Regex
    ... But actually I need to do it using Regular Expressions. ... I am not sure if this is the place to post a REGEX question if not, ... Given a string like: "Boston. ... "cosume" MA in the first macth so I do not have a second match. ...
    (microsoft.public.dotnet.languages.vb)