JSFiddle - React, Tailwind, and code Playground

HTML

Answering question <a href="http://stackoverflow.com/questions/8022913/regex-needed-to-split-a-string-by/8022961#8022961">Regex needed to split a string by “.”</a> by <a href="http://stackoverflow.com/users/938089/rob-w">Rob W</a>

JavaScript

var string = '*window.some1.some\\.2.(a.b + ")" ? cc\\.c : d.n [a.b, cc\\.c]).some\\.3.(this.o.p ? ".mike." [ff\\.]).some5'; 

var pattern = /(?:\((?:(['"])\)\1|[^)]+?)+\)+|\\\.|[^.]+?)+/g;
var result = string.match(pattern);

//Join the array, and display results
alert(result.join('\n'))