Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Regex ms-excel中的正则表达式_Regex_Excel - Fatal编程技术网

Regex ms-excel中的正则表达式

Regex ms-excel中的正则表达式,regex,excel,Regex,Excel,如何在excel中使用正则表达式 在上图中,我有一列A和B。我在A列中有一些值。在这里,我需要在列B中的=之后移动数据。例如,在第一排,我选择了SELECT=Hello World。在这里,我想删除=符号,并移动列B中的Hello world。我该怎么做呢?您可以使用MS Excel的文本到列功能,以“=”作为分隔符 请参阅此链接: Stackoverflow发表了许多关于使用VBA将正则表达式添加到Excel的文章。对于您的特定示例,需要VBA将子字符串从一个单元格实际移动到另一个单元格 如

如何在excel中使用正则表达式


在上图中,我有一列AB。我在A列中有一些值。在这里,我需要在列B中的=之后移动数据。例如,在第一排,我选择了SELECT=Hello World。在这里,我想删除=符号,并移动B中的Hello world。我该怎么做呢?

您可以使用MS Excel的文本到列功能,以“=”作为分隔符

请参阅此链接:
Stackoverflow发表了许多关于使用VBA将正则表达式添加到Excel的文章。对于您的特定示例,需要VBA将子字符串从一个单元格实际移动到另一个单元格

如果您只想复制子字符串,可以使用
MID
功能轻松完成:

=IFERROR(MID(A1,FIND("=",A1)+1,999),A1)

我使用999确保抓取了足够的字符

IFERROR
如果找不到等号,则按原样返回单元格

要返回等号之前的字符串部分,请执行以下操作:

=LEFT(A1,FIND("=",A1&"=")-1)

在本例中,我将等号附加到A1,因此
FIND
如果未找到,则不会返回错误。

您只需使用excel的文本到列功能即可:

Follow the below steps : 
1) Select Column A.
2) Goto Data Tab in Menu Bar.
3) Click Text to Column icon.
4) Choose Delimited option and do Next and then check the Other options in delimiter and enter '=' in the entry box.
5) Just click finish.
以下是指向列的文本的URL: