Changed dynamic language packs to use JSON format, updated format of regex definitions