I saw this Regex replace `a.b` to `a. b`? I don't understand it's for Python not for Javascript or it isn't well explained.
I know how to split "a.b" to ["a" "." "b"] with
regex = /(\.)/;
test = "a.b";
results = test.split(regex);
I can't see what regex to get
["a" ".b"]