for example: acl::string in_str = "./test/#test1"; auto vec = in_str.split2("/#", true); At this point, the value of vec is {".", "test", "test1"}