I take back my previous commit. That wasn't the bug. The bug was that using /foo/ notation for RegExp seemed NOT re-create the object in Android 2.3, causing issues using exec.
Updating comment