Fix old Android non-standard RegExp bug

Fixes #6