I’ve made a couple of updates to phreplace and created a new version 2.0.24 which is available here. The changes include:

  • Handling an exception that occurs in the vbscript Regex object when using a badly formed regular expression (e.g. reader.(\w)+\(reader.GetOrdinal\(”(\w)+”)); – note I forgot to escape the last parenthesis).
  • Added Write to Log option (which defaults to off) to write some debugging log events to a ‘phreplace.log’ file in the same folder as the ‘phreplace.dll’ library. This should help identify the issue for a user where the latest version of phreplace just doesn’t open (no error – no nothing).
  • Not a change but rather a note: Tried to understand the vbscript Regex object’s handling of ‘.’. Apparently it matches a new line (\n) but not a carriage return (\r) which is why doing a replace all with ^(.+)$  was acting  strange, try this instead ^([^\r\n]+)$.

Finally the new version of phdesign.com.au is live. Based on wordpress this site will hopefully be more active than it has been in the past. There are still areas to complete such as the portfolio section, but that shouldn’t be too far away. Now that I won’t be spending as much time on this site’s development perhaps I can focus more on phreplace, although I should spend some more time studying for my MCPD exams.


The documentation for phreplace which was included as a .chm file in version 2.0 is now available online. While viewing the documentation use the menu on the right hand side to navigate.

The docs include information on getting support, troubleshooting and version history.