Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于 eampaple,特定字符是“_”:
让 str = "a_b_c_d_1";
如何提取“a_b_c_d”?
找到了这样做的方法,我相信还有更优雅的方法。
let str = "a_b_c_d_1"; print(strcat_array(array_shift_right(split(str, "_"), 1),""))