FIXED: Infinite loop during replace all with regular expressions.