Mailing List ArchiveSupport open source code!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: REGEXP in perl questiion
- To: tlug@example.com
- Subject: Re: REGEXP in perl questiion
- From: Viktor Pavlenko <vp@example.com>
- Date: Wed, 23 May 2001 22:57:56 +0900
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii
- In-Reply-To: <F239vjvxo6AmX3qrB0X000106bf@example.com>
- References: <F239vjvxo6AmX3qrB0X000106bf@example.com>
- Reply-To: tlug@example.com
- Resent-From: tlug@example.com
- Resent-Message-ID: <R9-6iC.A.tcB.AJ8C7@example.com>
- Resent-Sender: tlug-request@example.com
>>>>> "JC" == Jean-Christian Imbeault <jean_christian@example.com> writes: >> perl -ne '/^Subject: Cron <.*?> (\S+)/ && print "$1\n"' < file JC> But Viktor, won't this only work if there is actually a space JC> after the )? Jc, (I assume you are talking about the char that follows the progname) yes, space or newline. To discard other non-space characters like &, <, > which separate words in shell you migh want to replace \S+ with something like [^\s&<>]+, but then it becomes ugly :) Viktor
- References:
- Re: REGEXP in perl questiion
- From: "Jean-Christian Imbeault" <jean_christian@example.com>
Home | Main Index | Thread Index
- Prev by Date: Re: What's closing off port 25?
- Next by Date: Re: What's closing off port 25?
- Prev by thread: Re: REGEXP in perl questiion
- Next by thread: datetime queries in postgres
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links