【问题标题】:Google sheets split with regex or regexextract?谷歌表格用正则表达式或正则表达式拆分?
【发布时间】:2020-03-06 03:02:21
【问题描述】:

假设我有一个带有以下字符串1. Finely chop onion & mushroom put in bowl 2. add beef, soy sauce, salt. mix 3. put patties on baking sheet 4. cook 5 mins, flip and bake for another 5 mins.的单元格

我想将字符串拆分成垂直堆叠的 4 个单元格 1. ... 2. ... 3. ...

我尝试了=split(A1,"\d.") 之类的方法,但这不起作用。不确定regexextract 是否可以用一行代码完成。

【问题讨论】:

    标签: arrays regex google-sheets google-sheets-formula transpose


    【解决方案1】:

    尝试:

    =TRANSPOSE(SPLIT(REGEXREPLACE(A1, "(\d+\.)", "♥$1"), "♥"))
    

    【讨论】:

      猜你喜欢
      • 2022-11-21
      • 2022-10-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-06
      相关资源
      最近更新 更多