From: "M. OS" Date: 2013-03-10T10:38:13+09:00 Subject: ruby watcher gem and regex I am very new to Ruby and am using the watcher gem. I want to watch a directory and all its files, and its subdirectories and their files, etc. If a file is modified anywhere in this directory tree, I then want to automatically launch a test corresponding to the modified file. Currently I have watch( 'Classes/(.*)\.php' ) {|md| system("phpunit Tests/#{md[0]}Test.php") } But this doesn't pick up the php files in subdirectories of Classes. Thanks for your help! -- Posted via http://www.ruby-forum.com/.