Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] perl regexp question
- Date: Wed, 23 Oct 2002 22:41:56 +0900
- From: Shimpei Yamashita <shimpei@example.com>
- Subject: Re: [tlug] perl regexp question
- References: <1035375880.5881.35.camel@example.com>
- Organization: Hummingbird Heaven
- User-agent: Mutt/1.4i
On Wed, Oct 23, 2002 at 09:24:40PM +0900, Ryan Shaw wrote: > is it possible to write a regexp that will do > something like the following: > > file10.txt -> file11.txt > file20.txt -> file21.txt > file55.txt -> file56.txt > > etc. > > something along the lines of s/(\d+)/$1+1/ > though obviously that doesn't work. > > is it not possible to manipulate the values > in the capture buffers like this? In perl, s/(\d+)/$1+1/e will do what you want. -- Shimpei Yamashita http://www.shimpei.org/ You can't have everything. Where would you put it? -- Steve Wright
- Follow-Ups:
- [tlug] Japan Times Article on Linux
- From: acmuller
- References:
- [tlug] perl regexp question
- From: Ryan Shaw
Home | Main Index | Thread Index
- Prev by Date: [tlug] perl regexp question
- Next by Date: [tlug] Japan Times Article on Linux
- Previous by thread: [tlug] perl regexp question
- Next by thread: [tlug] Japan Times Article on Linux
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links