From: Tom Koelman <tkoelman@xs4all.nl>
Subject: Re: How to split on content-length?
Date: Wed, 24 Sep 2003 08:44:08 +0200 [thread overview]
Message-ID: <ueky68z47.fsf@assurancetourix.xs4all.nl> (raw)
In-Reply-To: <m33cenvv6e.fsf@defun.localdomain> (Jesper Harder's message of "Wed, 24 Sep 2003 03:20:41 +0200")
Jesper Harder <harder@myrealbox.com> writes:
> Tom Koelman <tkoelman@xs4all.nl> 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
next prev parent reply other threads:[~2003-09-24 6:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-23 8:54 Tom Koelman
2003-09-23 18:41 ` Hanak David
2003-09-24 1:20 ` Jesper Harder
2003-09-24 6:44 ` Tom Koelman [this message]
2003-09-24 11:00 ` Ted Zlatanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ueky68z47.fsf@assurancetourix.xs4all.nl \
--to=tkoelman@xs4all.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).