linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Parsing multipart MIME
@ 2003-08-15 18:05 Darío Mariani
  2003-08-20 18:56 ` SEGFAULT John T. Williams
  0 siblings, 1 reply; 4+ 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] 4+ messages in thread
* Parsing multipart MIME
@ 2003-08-15 18:18 Darío Mariani
  0 siblings, 0 replies; 4+ 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] 4+ messages in thread

end of thread, other threads:[~2003-08-20 19:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-15 18:05 Parsing multipart MIME Darío Mariani
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

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).