in reply to Regular Expression mystery
Hi
Imagine the variable $name contained "foo", the regex will expand to .*foo-* , which will be true if the line contains any character, followed somewhwere with foo, and one or more - signs.
cheers
thinker
update As can be seen in the replies from the less careless monks who posted before me, the - sign need not appear. apologies.