Regex to do /<match>/<match>/<replace>?
From: Ian Marlier (marlieri_at_studentuniverse.com)
Date: 07/27/04
- Next message: James Edward Gray II: "Re: Regex to do /<match>/<match>/<replace>?"
- Previous message: James Edward Gray II: "Re: Multiple Parameters"
- Next in thread: James Edward Gray II: "Re: Regex to do /<match>/<match>/<replace>?"
- Reply: James Edward Gray II: "Re: Regex to do /<match>/<match>/<replace>?"
- Reply: Gunnar Hjalmarsson: "Re: Regex to do /<match>/<match>/<replace>?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
- Next message: James Edward Gray II: "Re: Regex to do /<match>/<match>/<replace>?"
- Previous message: James Edward Gray II: "Re: Multiple Parameters"
- Next in thread: James Edward Gray II: "Re: Regex to do /<match>/<match>/<replace>?"
- Reply: James Edward Gray II: "Re: Regex to do /<match>/<match>/<replace>?"
- Reply: Gunnar Hjalmarsson: "Re: Regex to do /<match>/<match>/<replace>?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|