How can I do a regexp in ruby 1.8 that matches:
/my_dir/1/file
but not if I have:
/my_dir/1/deeper_stuff/file
So far I have
source_string = '/my_dir/1/index.html.erb'
/^\/my_dir/.match(source_string)
for the initial match, how do I add the second disqualifier for /deeper_stuff
?
so that
source_string = '/my_dir/1/deeper_stuff/'
gets excluded.