Correcting target regexp