From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/54036 Path: main.gmane.org!not-for-mail From: Tom Koelman Newsgroups: gmane.emacs.gnus.general Subject: Re: How to split on content-length? Date: Wed, 24 Sep 2003 08:44:08 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1064389281 18231 80.91.224.253 (24 Sep 2003 07:41:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 24 Sep 2003 07:41:21 +0000 (UTC) Original-X-From: ding-owner+M2576=ding+2Daccount=gmane.org@lists.math.uh.edu Wed Sep 24 09:41:19 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A24H1-0005Zk-00 for ; Wed, 24 Sep 2003 09:41:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1A24H1-0004yH-00 for ding-account@gmane.org; Wed, 24 Sep 2003 02:41:19 -0500 Original-Received: from justine.libertine.org ([66.139.78.221]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1A24Gt-0004y9-00 for ding@lists.math.uh.edu; Wed, 24 Sep 2003 02:41:11 -0500 Original-Received: from smtpzilla5.xs4all.nl (smtpzilla5.xs4all.nl [194.109.127.141]) by justine.libertine.org (Postfix) with ESMTP id 39DD13A004C for ; Wed, 24 Sep 2003 02:41:10 -0500 (CDT) Original-Received: from RIJ01702.assurancetourix.xs4all.nl (62-192-112-123.dsl.easynet.nl [62.192.112.123]) by smtpzilla5.xs4all.nl (8.12.9/8.12.9) with ESMTP id h8O7f8XK062603 for ; Wed, 24 Sep 2003 09:41:08 +0200 (CEST) Original-To: ding@gnus.org In-Reply-To: (Jesper Harder's message of "Wed, 24 Sep 2003 03:20:41 +0200") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (windows-nt) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:54036 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:54036 Jesper Harder writes: > Tom Koelman writes: > >> use a regular expression to express that I want to split if >> X-Content-Length: is followed by a number bigger dan 143360 > > You /could/ use a regexp, e.g. > > [1-9][4-9][0-9]\\{4,\\} > > which matches any number greater than 139999. I don't think this will match anything for wich the last 5 digits are a number between 00000 and 39999. But you gave me an idea and I modified it to \\(1[4-9]\\|[2-9][0-9]\\)[0-9]\\{4,\\} which still has a problem with numbers containing more than 6 digits of which the first is a 1 and the second smaller than 4. Adding another bit like so \\(1[4-9]\\|[2-9][0-9]\\|[1-9][0-9][0-9]\\)[0-9]\\{4,\\} does the trick. Thanks, Tom