🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #312

Re: ¿Como cortar una expresion regular?

#312
From: J.A. Gutierrez
Date: Wed, 03 Jun 2009 07:29
38 lines
2471 bytes
Bypper <bypper@microsoft.com> wrote:

: | egrep ^\"[0-9][0-9]\/[0-9][0-9]\/[0-9][0-9][0-9][0-9]\";

	esto deberia ser

egrep ^\"[0-3][0-9]\/[0-1][0-9]\/[1-2][0-9][0-9][0-9]\";

	(y aun se escapan algunas fechas falsas)


: de esta manera, extraigo unicamente las que empiezan con una fecha, como 
: est� en el ejemplo, hasta ahi bien, el problema es que hay alguna linea 
: como esta:

: "27/05/2008";"RECIBO ** PELAYO MUTUA 
: D";"27/05/2008";"-345.48";"608.96";;;;"0";"-345.48"

: y ahi, la expresi�n regular coge los asteriscos y me muestra todos los 
: ficheros del directorio actual, y mi pregunta es obvia:

	?????

	Una expresion regular por si sola es algo inerte, no puede
	reemplazar asteriscos ni hacer nada.

	Tendras que mostrarnos mas detalles del codigo que estas
	haciendo; pero habitualmente los problemas de expansion de shell
	se evitan o usando adecuadamente las comillas o haciendo "set -f"
	(man sh)



-- 
PGP and other useless info at      \
http://webdiis.unizar.es/~spd/      \
finger://daphne.cps.unizar.es/spd    \       Timeo Danaos et dona ferentes
ftp://ivo.cps.unizar.es/pub/          \                         (Virgilio)   
Technical Details
Message-ID: <h058o1$tct$1@aioe.org>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!83.128.0.11.MISMATCH!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!not-for-mail
References: <pjjhf6-dqd.ln1@apevia.bersol.sytes.net>

Show Full Headers
Complete Article Headers
X-Google-Thread: 646d03421f,179545d58d4c0ab7
X-Google-Attributes: gid646d03421f,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx01.iad01.newshosting.com!newshosting.com!83.128.0.11.MISMATCH!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!194.109.133.84.MISMATCH!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!news.stack.nl!aioe.org!not-for-mail
From: "J.A. Gutierrez" <spd@daphne.cps.unizar.es>
Newsgroups: es.comp.os.linux.programacion
Subject: Re: ¿Como cortar una expresion regular?
Date: Wed, 3 Jun 2009 07:29:05 +0000 (UTC)
Organization: Rank
Lines: 38
Message-ID: <h058o1$tct$1@aioe.org>
References: <pjjhf6-dqd.ln1@apevia.bersol.sytes.net>
NNTP-Posting-Host: MCosCHQmnr2+xGPgpnz89Q.user.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@aioe.org
X-Notice: Filtered by postfilter v. 0.7.9
Cancel-Lock: sha1:4Sg5cTgLjfzzfkv1yEQ81Uzi8W8=
User-Agent: tin/1.4.7-20030322 ("Suggestions") (UNIX) (IRIX64/6.5 (IP30))