Hello all,

I am a computer technician for a local high school. Part of my job is to add new sites to the website filter, as teachers send the links to me. The way our filter works, instead of blocking google.com, I have to type in *\.google\.com*\.*

That does get annoying after a while, as it's quite repetitive. I'm writing a small program to help me with that. There are two multiline text boxes and a button. I enter the URLs into the top text box (one URL per line), and than click the button, and ideally it will automatically add the *\. to the front, the \ in front of .com, and *\.* to the end of each line, and than display the outcome in the lower text box.

I figured out how to add the \ in front of .com:

DotComFiltered = StrReplace (OriginalList, ".", "\.")

However, I can't figure out how to make visual basic add the *\. in front of each line, and the *\.* at the end of each line. Is that possible?