parsing attr val with regexp