Newsgroups: fj.lang.perl
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!infoweb-news!news.nagoya.infoweb.or.jp!news-gw!news-k-net!nf2.iij.ad.jp!news.iij.ad.jp!iijnet!news.nid.co.jp!news
From: Masafumi TAKAHASHI <takahasi@soft.nid.co.jp>
Subject: Re: [Q]Pattern matching doesn't work. Why?
In-Reply-To: Masafumi TAKAHASHI's message of Tue, 5 Nov 1996 12:11:30 GMT
X-Nntp-Posting-Host: olive
Content-Type: text/plain; charset=ISO-2022-JP
Message-ID: <E0EKLq.9F7@Maria.nid.co.jp>
Sender: news@Maria.nid.co.jp
Organization: Nippon Information Development Co.,Ltd. Tokyo, Japan
X-Newsreader: Gnus v5.0.15
References: <E0ECIA.7G4@Maria.nid.co.jp>
Mime-Version: 1.0 (generated by tm-edit 7.85)
Date: Tue, 5 Nov 1996 15:06:21 GMT
X-Pgp-Fingerprint: D8 AB 4C DD F4 CD 04 1F  E5 88 21 7D E3 23 FB 6D
Lines: 20
Xref: galaxy.trc.rwcp.or.jp fj.lang.perl:1405
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.perl&nb=1405&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

$B<+8J%U%)%m!<$G$9!#(B

In article <E0ECIA.7G4@Maria.nid.co.jp>
  Masafumi TAKAHASHI <takahasi@soft.nid.co.jp> writes:

> $BMW$O(B `/' $B$,(B 2$B2s0J2<$@$18=$l$k9T$rH4$-=P$7$?$$$o$1$G$9$h$M!#(B
> $B$=$&9M$($k$H!"$3$s$J46$8$G$I$&$G$7$g$&!#(B
> 
>     $pattern = '^([^/]+\/([^/]+\/)?)?[^/]+$';

$B$$$^8+D>$7$F$_$?$i!"$I$&$bH~$7$/$J$$$N$G$A$g$C$H(B
$B<jD>$7$7$F$_$^$7$?!#(B

    $pattern = '^[^\/]+(\/[^\/]+){0,2}$';


-- 
$B9b662m;K(B ($B3t(B)$B%(%L%"%$%G%$(B
<takahasi@soft.nid.co.jp>

