将两个单词从一个单元格提取到 google 电子表格中的另一个单元格

Extract two words from a cell in to another cell in google spreadsheet

我是 google 电子表格的新手,想将范围 c10 中提到的 class 名称复制到 b3。我正在尝试使用以下我知道是错误的公式:

=query(C3:C52, "copy class name where C contains 'class' in cell c10 ")

C10 单元格包含以下数据:

<body bgcolor="beige" class="body"> <div class="big_wrapper">

我希望单元格 b3 中出现以下两个词:

body big_wrapper

请更正以上公式。

为了更加清晰,请访问以下 link 的工作表 1:

https://docs.google.com/spreadsheets/d/1HfgOqprc-P34vOI-nGAionllrGAOsMOVuLB5ozboWBY/edit#gid=0

可能有更简单的方法,但请尝试(在 B3 中):

=join(" ", regexextract(C10, "class="&char(34)&"(.+?)"&char(34)&">.+class="&char(34)&"(.+?)"&char(34)&">"))