index: add crude RegExp -> NSRegularExpression casting support
global: export YES and NO helper variables