What is the syntax to replace several occurances of characters in a string that each start with "/" and end with "#", each occurance to be replaced by "XXX" ? What is the syntax if the occurances end with a newline ? How can I match a short word without getting matches to longer words that start with the same letters ? Thanks.