in reply to RE: RE: Warning our Fellow Monks
in thread Warning our Fellow Monks
The line:
$siteinfo[1] =~ /^[^.]+/(\w+\.\w+)$/ or ...
in Ovid's example has me confused. The extra slash (/) in the middle is throwing me off. At first glance, it looks like he meant to use the s/// operator. At second glance, it becomes apparent that it's meant as a directory separator (to exclude things like "../../". However, doesn't placing a '/' in a regexp delimited by '/' characters require an escape character (\)?
(I must be getting a mild case of LTS)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: why extra slash in regex? (was "Warning our Fellow Monks")
by tye (Sage) on Mar 17, 2001 at 00:45 UTC | |
|
Re^2: why extra slash in regex? (was "Warning our Fellow Monks")
by Anonymous Monk on Jul 25, 2005 at 14:35 UTC |