From: "Darío Mariani" <dmarian@fi.uba.ar>
To: linux-c-programming@vger.kernel.org
Subject: Parsing multipart MIME
Date: Fri, 15 Aug 2003 15:05:39 -0300 [thread overview]
Message-ID: <3F3D20F3.7030304@fi.uba.ar> (raw)
Hello:
I'm building a minimal MIME parser, mainly to separate the parts in a
multipart/form-data in a web POST. I was wondering if anyone made the
regular expression for interpreting it. I thought of this:
multip ::= start anychar* (delim anychar*)* end?
anychar ::= <any character including \0>
delim ::= <delimiter>
start ::= "--" delim "\r\n"
middle ::= "\r\n--" delim "\r\n"
end ::= "\r\n--" delim "--"
I have little experience with grammars so this expression may be
wrong. Any ideas? thanks,
Darío
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2003-08-15 18:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-15 18:05 Darío Mariani [this message]
2003-08-20 18:56 ` SEGFAULT John T. Williams
2003-08-20 19:35 ` SEGFAULT Glynn Clements
-- strict thread matches above, loose matches on Subject: below --
2003-08-15 18:18 Parsing multipart MIME Darío Mariani
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=3F3D20F3.7030304@fi.uba.ar \
--to=dmarian@fi.uba.ar \
--cc=linux-c-programming@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.