🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #1737

consulta php preg_match y tipos de variables

#1737
From: Rickoj
Date: Tue, 06 Jun 2006 21:20
16 lines
1660 bytes
bueno necesito obtener unos datos de un log, buscando en phpclasses.org 
encontre "Apace log parser", mire el archivo con el fin de saar una idea y 
encontre que utiliza la funcion preg_match verifica un patron y si 
corresponde lo almacena en un arreglo, la funcion recibe estos parametros

preg_match("/^(\S+) (\S+) (\S+) \[([^:]+):(\d+:\d+:\d+) ([^\]]+)\] \"(\S+) 
(.*?) (\S+)\" (\S+) (\S+) (\".*?\") (\".*?\")$/", $matches);

mi duda es que no entiendo que es \S+ (asumo string) \d+

alguien me podria explicar se supone que parse el log de apaxhe que es del 
tipo

172.0.0.1 - - [21/Sep/2005:23:06:41 +0100] "GET / HTTP/1.1" 404 - "-" 
"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050712 
Firefox/1.0+" 
Technical Details
Message-ID: <e64rlm$9kc$1@news.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news.nivel5.cl!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,5ee13cd680b85cc4,start
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!nntp-server.pubsub.com!news.nivel5.cl!not-for-mail
From: "Rick_oj" <rick_oj@[sin-esto]tutopia.com>
Newsgroups: chile.comp.programacion
Subject: consulta php preg_match y tipos de variables
Date: Tue, 6 Jun 2006 17:20:52 -0400
Organization: Varios
Lines: 18
Message-ID: <e64rlm$9kc$1@news.nivel5.cl>
NNTP-Posting-Host: pc-131-200-120-200.cm.vtr.net
X-Trace: news.nivel5.cl 1149628921 9868 200.120.200.131 (6 Jun 2006 21:22:01 GMT)
X-Complaints-To: news@news.nivel5.cl
NNTP-Posting-Date: Tue, 6 Jun 2006 21:22:01 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original