Here is my problem. I have a string with mixed case in it. I want to search regardless of case and then replace the matches with some characters either side of the matches.
You can also do this
yourString.replace(/([a-z]+)/ig, "#$1#")