RegEx to extract email

后端 未结 4 1742
花落未央
花落未央 2021-01-15 04:52

I need to extract only the email from a spreadsheet in Excel. I\'ve found some example VBA code here at this StackOverflow link, courtesy of Portland Runner

4条回答
  •  渐次进展
    2021-01-15 05:09

    You can change the line

     simpleCellRegex = regEx.Replace(strInput, strReplace)
    

    To

     simpleCellRegex = strInput
    

    Because you are not making any replacement

提交回复
热议问题