Selecting objects by name with mel?


Hello guys,

I want to create a tool that includes a button, and when you click the button, it will select all objects if they have the same name, what I’ve got now:

button -l "abc" -command ("select -r "abc*"")

But this gives me a syntax error, I guess due to the quotation, anyone has suggestions?
Thanks in advanced!


button -l “abc” -command ("select -r "+abc*) or
button -l “abc” -command (("select -r "+abc*))