How do you do a regular expression in unity3d that will replace all the instances.
re=/hello/g; mystring="hello my baby hello my honey"; result=mystring.replace(re,"goodbye");
I know in Unity3d it would be something like this
myresult=Regex.Replace(mystring,"hello","goodbye"); but where do you put the g?
asked Nov 17 '10 at 03:57 AM