Some countries do not allow the carrying of a knife in the street.
Is there such a regulation in Malaysia?
Yes there is.
According to this:
Carrying a knife is illegal in Malaysia. You will be arrested and charged under the Corrosive, Explosive and Dangerous Weapons Act 1958 which carries a jail term of up to two years and whipping, upon conviction. Some people do carry short knife for defense purposes and never get caught. Those caught and charged are likely arrested by police upon receiving call from the public or security guard (樣衰) accused on suspicion. Some are even arrested for carrying knife in front of their own house - perhaps wielding their knife or mannerism carrying a knife.