* Parsing multipart MIME
@ 2003-08-15 18:18 Darío Mariani
0 siblings, 0 replies; 2+ messages in thread
From: Darío Mariani @ 2003-08-15 18:18 UTC (permalink / raw)
To: linux-c-programming
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
^ permalink raw reply [flat|nested] 2+ messages in thread* Parsing multipart MIME
@ 2003-08-15 18:05 Darío Mariani
0 siblings, 0 replies; 2+ messages in thread
From: Darío Mariani @ 2003-08-15 18:05 UTC (permalink / raw)
To: linux-c-programming
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-15 18:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-15 18:18 Parsing multipart MIME Darío Mariani
-- strict thread matches above, loose matches on Subject: below --
2003-08-15 18:05 Darío Mariani
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.