Select objects by prefix and group them using group name same as prefix
Hello everyone, I started with maxscript few days ago and I'm stuck in this.
I have multiple objects in scene, like: (objectnames)
color_black color_red color_blue bar_1 bar_2 plane001 plane002 ...
and I would like to ask how do I use "select" function to select them.
I've used this to select one of them.
How can I select all object in scene starting with "color" "bar" "plane"?
and make group with names "color" "bar" and "plane"
Thanks for any help.