|
How do you do a regular expression in unity3d that will replace all the instances. in javascript this would be done using g 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? Thanks, Dan
(comments are locked)
|
