RE: [PBML] Re: Regular expression needed

2001-10-10 Thread Thomas_M
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

RE: [PBML] Re: Regular expression needed

2001-10-10 Thread Jeffrey
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]

RE: [PBML] Re: Regular expression needed

2001-10-10 Thread Jeffrey
--- "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

RE: [PBML] Re: Regular expression needed

2001-10-10 Thread Tillman, James
> 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

RE: [PBML] Re: Regular expression needed

2001-10-10 Thread Vroom, Tim
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