On Fri, 28 Jul 2000, Saurabh Goyal wrote:

> > Hi,

> > $_ = "10.0.48.146 - - [28/Jul/2000:13:22:37 -0700] \"GET /home/test.html
                                                     ^
> > HTTP/1.0\" 200 193";

> > if(/^(\S+) (\S+) (\S+) \[([^:]+):(\d+:\d+:\d+) ([^\]]+) "(\S+) (.*?)
                                                           ^
add:

  \]

you do not match the ending ], since you match everything until ], but you
forgot the ] itself...

> > (\S+)" (\S+) (\S+)$/)

bye,
remco

/----------------------------------------------------------------------\
| Remco Schaar                                                         |
| e-mail: [EMAIL PROTECTED]                                      |
\----------------------------------------------------------------------/

    South Park meets Linux:
        - "Oh my God, they killed init!"
        - "You bastards!"

Reply via email to