A modular system for weed control for a railway vehicle, wherein the modular system comprises - a control unit adapted - for generating a first set of control signals for controlling of vents and mixers in a separate herbicide and mix module for mixing a weed-specific herbicide mixture, and - for generating a second set of control signals for controlling of vents of a spraying unit, and - the herbicide and mix module comprising - vents, mixers and containers for retaining different herbicides that are selectively linked to the vents and mixers via a selective fluidic connection, - connection elements via which electric signal connections are establishable to connection elements of the control unit such that the first control signals generated in the control unit are directable to the vents and mixers of the herbicide and mix module, - a spraying unit, which is spatially independent from both, the control unit and the herbicide and mix module, the spraying unit comprising - a first set of sprayers for spraying of herbicides, and - a fluidic connection to selective ones of the vents and mixers of the herbicide and mixing module, - a camera module that generates, in a reaction to a recognition of weed, a control signal, wherein the generation of the first set of control signals and the generation of the second set of control signals is controllable via the control signal via for the control unit, wherein the camera module has a predefined distance to the spraying unit, is spatially separated from the control unit, the herbicide and mix module, and the spraying unit, and is positioned before the control unit, the herbicide and mix module and the spraying unit in a joint movement direction, wherein the control unit is part of a regulation and control module which is - together with the herbicide and mix module and the spray unit - individually reversibly fixable at a carrier element, respectively. - a control unit adapted - for generating a first set of control signals for controlling of vents and mixers in a separate herbicide and mix module for mixing a weed-specific herbicide mixture, and - for generating a second set of control signals for controlling of vents of a spraying unit, and - for generating a first set of control signals for controlling of vents and mixers in a separate herbicide and mix module for mixing a weed-specific herbicide mixture, and - for generating a second set of control signals for controlling of vents of a spraying unit, and - the herbicide and mix module comprising - vents, mixers and containers for retaining different herbicides that are selectively linked to the vents and mixers via a selective fluidic connection, - connection elements via which electric signal connections are establishable to connection elements of the control unit such that the first control signals generated in the control unit are directable to the vents and mixers of the herbicide and mix module, - vents, mixers and containers for retaining different herbicides that are selectively linked to the vents and mixers via a selective fluidic connection, - connection elements via which electric signal connections are establishable to connection elements of the control unit such that the first control signals generated in the control unit are directable to the vents and mixers of the herbicide and mix module, - a spraying unit, which is spatially independent from both, the control unit and the herbicide and mix module, the spraying unit comprising - a first set of sprayers for spraying of herbicides, and - a fluidic connection to selective ones of the vents and mixers of the herbicide and mixing module, - a first set of sprayers for spraying of herbicides, and - a fluidic connection to selective ones of the vents and mixers of the herbicide and mixing module, - a camera module that generates, in a reaction to a recognition of weed, a control signal,