Jeffrey [mailto:[EMAIL PROTECTED]] wrote:
>
> Another method is to specify different delimiters for
> the match. This avoids LTS (leaning toothpick
> syndrome):
>
> m#^/bootp/linux/#;
> m%^/bootp/linux/%;
> m(^/bootp/linux/);
>
> Each of the lines above are equivalent -- they're also
> equival
Another method is to specify different delimiters for
the match. This avoids LTS (leaning toothpick
syndrome):
m#^/bootp/linux/#;
m%^/bootp/linux/%;
m(^/bootp/linux/);
Each of the lines above are equivalent -- they're also
equivalent to /^\/bootp\/linux\//;
--- "Vroom, Tim" <[EMAIL PROTECTED]
--- "Vroom, Tim" <[EMAIL PROTECTED]> wrote:
> you need to escape all of the /'s in your path with
> in
> the match
>
> /^\/bootp\/linux\//;
>
> should match;
>
> a good technique for building regular expressions is
> to
> match a small portion of what you're looking for.
> then
> after you ge
> Hi, I have a file with several lines which begins with:
> /bootp/linux/
>
> I would like to match theses lines
>
> I tried this while () {
> chomp();
> /^\/bootp/linux/\/
>
> but it doesn't work how can I do ?
>
Um. Something tells me you didn't cut and paste the origi
Title: RE: [PBML] Re: Regular expression needed
you need to escape all of the /'s in your path with in
the match
/^\/bootp\/linux\//;
should match;
a good technique for building regular expressions is to
match a small portion of what you're looking for. then