Extract some info from rules expressions