I'm having a hard time figuring out regular expressions. How can I replace all instances of a string with another string? Say I have an object named "sphere_poly_poly" and I want to replace "poly" with "nurbs", I tried:
substitute "(poly)+" $object "nurbs";
but it only replaces the first instance and gives me "sphere_nurbs_poly"