p x[/#{Alternative_Plugin_Dir}([^*]*)/,1]

i rather use above to

p x.split(Alternative_Plugin_Dir)[1]

resolved

-- 
Posted via http://www.ruby-forum.com/.