I have http header string
GET /phpmyadmin/sql.php?db=monitor&table=boundries&token=08b1cd52b3bc0068ea470988e292f54d&pos=0 HTTP/1.1
Host: mylocalwebhost.net
The above is a sample string which I will recieve through a file. In each string I need to check for validity for the first line.
The 'GET' portion can be any of GET PUT POST DELETE.
How can I match the first line using a regular expression. Please some one provide me with a valid regex that I can use with php preg_match()