I have an arraylist with different kinds of data but I added key words that I would like RegEx to replace.
For example, the arraylist could contain data as:
"Mr. nnaammee is scheduled for physical therapy on ddaattee."
What is the correct syntax for looping through the arraylist, finding each instance of nnaammee and ddaattee and replacing it with a text value located on a text box?
For i = 0 to ArrayList1.Count-1
str = ArrayList1.Item(0) 'Always the first item
Regex1.Replace(str,textbox1.text)
ArrayList1.RemoveAt(0)
ArrayList1.Add(str)
Next