[英]How to find and replace with regex in excel
I have an excel file with 1 column and multiple rows.我有一个 1 列和多行的 excel 文件。
The rows contain various text, here's an example:这些行包含各种文本,这是一个示例:
texts are home
texts are whatever
dafds
dgretwer
werweerqwr
texts are 21412
texts are 346345
texts are rwefdg
terfesfasd
rwerw
I have an excel file with 1 column and multiple rows.我有一个 1 列多行的 excel 文件。
The rows contain various text, here's an example:这些行包含各种文本,这是一个示例:
texts are home
texts are whatever
dafds
dgretwer
werweerqwr
texts are 21412
texts are 346345
texts are rwefdg
terfesfasd
rwerw
I want to replace "texts are *" where * is anything after "texts are" with a specific word, for example "texts are replaced".我想用特定单词替换“文本是 *”,其中 * 是“文本是”之后的任何内容,例如“文本被替换”。 How can I do that in Excel?
我怎样才能在 Excel 中做到这一点?
I have an excel file with 1 column and multiple rows.我有一个 1 列多行的 excel 文件。
The rows contain various text, here's an example:这些行包含各种文本,这是一个示例:
texts are home
texts are whatever
dafds
dgretwer
werweerqwr
texts are 21412
texts are 346345
texts are rwefdg
terfesfasd
rwerw
I want to replace "texts are *" where * is anything after "texts are" with a specific word, for example "texts are replaced".我想用特定单词替换“文本是 *”,其中 * 是“文本是”之后的任何内容,例如“文本被替换”。 How can I do that in Excel?
我怎样才能在 Excel 中做到这一点?
I have an excel file with 1 column and multiple rows.我有一个 1 列多行的 excel 文件。
The rows contain various text, here's an example:这些行包含各种文本,这是一个示例:
texts are home
texts are whatever
dafds
dgretwer
werweerqwr
texts are 21412
texts are 346345
texts are rwefdg
terfesfasd
rwerw
I want to replace "texts are *" where * is anything after "texts are" with a specific word, for example "texts are replaced".我想用特定单词替换“文本是 *”,其中 * 是“文本是”之后的任何内容,例如“文本被替换”。 How can I do that in Excel?
我怎样才能在 Excel 中做到这一点?
I have an excel file with 1 column and multiple rows.我有一个 1 列多行的 excel 文件。
The rows contain various text, here's an example:这些行包含各种文本,这是一个示例:
texts are home
texts are whatever
dafds
dgretwer
werweerqwr
texts are 21412
texts are 346345
texts are rwefdg
terfesfasd
rwerw
I want to replace "texts are *" where * is anything after "texts are" with a specific word, for example "texts are replaced".我想用特定单词替换“文本是 *”,其中 * 是“文本是”之后的任何内容,例如“文本被替换”。 How can I do that in Excel?
我怎样才能在 Excel 中做到这一点?
Apparently, Excel does not use Regex, but there is a workaround.显然,Excel 不使用 Regex,但有一种解决方法。 You can use *, ?
您可以使用 *, ? or ~ in your search pattern.
或 ~ 在您的搜索模式中。
To find寻找
? (question mark) = Any single character. For example, sm?th finds "smith" and "smyth"
* (asterisk) = Any number of characters For example, *east finds "Northeast" and "Southeast"
~ (tilde) followed by ?, *, or ~ = A question mark, asterisk, or tilde. For example, fy06~? finds "fy06?"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.