2009/2/10 John W. Krahn <jwkr...@shaw.ca>: > Dermot wrote: >> >> Hi, > > Hello, > >> I just hit something that I hadn't noticed before and I am not sure >> it's it's a syntax issue or I have not been doing my reading. >> >> I am trying to create a regex to match a directory name in path string
>> Is that right? > > Yes. With the exception of // and ?? the match operator has to start with > an 'm'. Interesting. >> Also when you are using other delimiters, like |, do I no longer have >> to stop escaping my slash charaters / but now need to escape my new >> delimiting character EG |? > > Yes, you should try to use a delimiter that is not a part of the pattern, > and especially not regular expression metacharacters like |. Yes I guess that would be smart. Thanx john. Dp. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/