String[] strings = "Thequickbrownfoxjumps".split("(?<=G.{4})"); // split all 4 chars String[] strings = "Thequickbrownfoxjumps".split("(?<=G.{100})"); // this would be all 100 chars // -> ['Theq', 'uick', 'brow', 'nfox', 'jump', 's']