fix bug 836327 - use preg_replace_callback
Merge pull request #26 from groovecoder/preg-replace-836327

fix bug 836327 - use preg_replace_callback