Method and system for acquiring cigarette production quality control data

The invention relates to a method and a system for acquiring cigarette production quality control data. The method comprises steps: data sent by a cigarette production quality control device are received; a parsing engine is called; the parsing engine loads a parsing regular expression corresponding to the cigarette production quality control device from a configuration table according to the type of the cigarette production quality control device; and the parsing engine adopts the parsing regular expression to parse the received data. According to the cigarette production quality control data acquisition method, a different parsing regular expression only needs to be called for data acquisition on a different quality control device, a new parsing module does not need to be developed, the generality is strong, and the manpower and the time cost consumed when the new module is developed can be saved. In addition, as the parsing engine unifies the data acquisition process, when a problem happens to repairing of the data acquisition process, problems existing in all quality control devices are repaired through one change, and the maintenance work is quick convenient and quick.