Recursive search and replace in AS2 (actionScript 2)

After searching for a function that searches for all occurrences of a string within a body of text and replaces it with another string, I decided to write my own so here it is: function replace (search, replace, subject):String { r = subject.split(search).join(replace); if (r.indexOf(search) == -1) { return r; } else { replace(search, replace, …

1 Overview of the curriculum and orientation. Diploid and haploid cells Reviewing mitosis (useful for p23q4) Probing the documentP23 1 Karyotyping Meiosis (introduction) 1 Meiosis (continued) 1 Male Reproductive System 1 Spermatogenesis Exercises relating to Meiosis and spermatogenesis. 1 Correcting the HW 1 Correcting the HW 1 Female reproductive system. 1 Oogenesis (introduction)   1 …