neonoodle
09-07-2005, 11:25 PM
Hey all,
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"
any suggestions?
Thanks!
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"
any suggestions?
Thanks!
