Fixed BRE pattern conversion.
Added callback handling.
Updated .gitignore