Your skill will accomplish what the force of many cannot |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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. In reply to Re: Regular Expression mystery
by thinker
|
|