regex for http header in C
<p>I wanna extract strings from http header like: <code>GET http://www.example.com HTTP/1.1</code> using regex. I use this pattern: <code>^([A-Za-z]+)(\s+)(http?):\/\/(.*)(\s+)(HTTP\/)([0-9].[0-9])</code> and this works good and splits <code>GET</code>, <code>http://www.example.com</code> and <code>HTTP/1.1</code>. But when I use this pattern in C, it doesn't escape <code>/</code>(i.e, <code>\/\/</code> doesn't detect in C). How can I do this? or is there a better pattern for extract strings from http header?</p>