Use RegExp constructor instead o literals to avoid a bug in older Opera browsers