Use Google Sheets instead of Excel - this feature is built in, so you can use regex right from the find and replace dialog.

To answer your question:

  1. Copy the data from Excel and paste into Google Sheets
  2. Use the find and replace dialog with regex
  3. Copy the data from Google Sheets and paste back into Excel
Answer from Crag on Stack Overflow
🌐
Exceljet
exceljet.net › home › functions › regexreplace function
Excel REGEXREPLACE function | Exceljet
June 17, 2025 - By default, REGEXEXTRACT will return the first match, but it can … · The Excel SUBSTITUTE function replaces text in a given string by matching. You can use SUBSTITUTE to replace or completely remove matched text.
🌐
Reddit
reddit.com › r/excel › find and replace regular expressions in excel.
r/excel on Reddit: Find and replace regular expressions in excel.
June 6, 2019 -

What would be the best way to find and replace all regular expression symbols in a data set? I’m trying to clean all the data before uploading to a table.

I found a way to do it in Notepad ++, but I’m having a hard time finding a way to do it in excel.

🌐
Microsoft Support
support.microsoft.com › en-us › excel › regexreplace-function
REGEXREPLACE Function | Microsoft Support
The REGEXREPLACE function allows you to replace text from a string with another string, based on a supplied regular expression ("regex").
🌐
Ablebits
ablebits.com › ablebits blog › excel › regex › excel regex to replace strings using regular expressions
Excel Regex to replace strings using regular expressions
August 22, 2023 - To substitute a specific occurrence, put a corresponding number in the instance_num argument. By default, the function is case-sensitive. For case-insensitive search, set the match_case argument to FALSE.
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 652134 › regex-with-replace-in-an-excel-cell-excluding-stri
Regex with Replace in an Excel cell - excluding string in brackets - Microsoft Q&A
Function DelCommaBrk(s As String) As String With CreateObject("VBScript.RegExp") .Pattern = ",(?=[^(]*\))" .Global = True DelCommaBrk = .Replace(s, "!") End With End Function · You could press Alt + F11 to open VBA Editor, insert a new module, then put this code into this module. Go back to Excel worksheet, use this custom function DelCommaBrk to change all commas in all brackets to "!". And then use the "SUBSTITUTE" function to replace all commas to "###".
🌐
Aiexcelbot
aiexcelbot.com › formulas › text › regexreplace
Formula Generator - REGEXREPLACE function
The REGEXREPLACE function is used to replace part of a text string with a different text string using regular expressions. It takes three arguments: the original text, the regular expression pattern to match, and the replacement text. The function searches for all occurrences of the regular ...
Find elsewhere
Top answer
1 of 4
8

Excel's pattern matching capabilities are extremely limited: literal characters, * to match any number of unspecified characters, and ? to match a single unspecified character. There is no native match placeholder capability, either in worksheet functions or in VBA.

However, as Excellll noted, you can use regex in VBA, and can develop user-defined functions that are regex-based.

To access regex in your code, add a reference to the "Microsoft VBScript Regular Expression 5.5" library via the Tools->References selections in the main menu for the Visual Basic code editor.

I have not found any comprehensive documentation for the library, but you can find a lot of bits and pieces - and example code - with a Google search.

2 of 4
3

Though this is a very late answer, I have had success with an add-in called RegEx Find/Replace to do exactly what you want. But I do not know of any built-in capability for this in Excel.

The add-in creates a button on the ribbon which launches a dialog box that looks very much like the Excel Find/Replace. Most of it works the same as well - you can search within a sheet or workbook, by columns or rows, match case, etc. (There is no format matching, though.)

Note, however, that the add-in uses regular expressions as implemented in VBScript and so works differently than the standard Excel Find/Replace. For example, your search string _* would not work. It matches any cell with zero or more underscores, which is anything. For your example, I had success finding _(\d+) and replacing with '($1). (The apostrophe is just to prevent Excel from interpreting (4) as a negative value.)

I am in no way affiliated with the website or developer - just found it through a web search. Also, I use Excel 2007 and cannot say whether this still works in later versions. I have used it successfully in both Windows 7 and Windows 10.

The RegEx Find/Replace add-in can be found at http://www.codedawn.com/excel-add-ins.php

🌐
ExcelDemy
exceldemy.com › home › advanced excel › how to find and replace regex patterns in excel (3 examples)
How to Find and Replace RegEx Patterns in Excel (3 Examples) - ExcelDemy
July 11, 2024 - This article shows the creation of a UDF to find and replace RegEx patterns in Excel. The practice workbook is attached here for free.
🌐
MakeUseOf
makeuseof.com › home › productivity › this is the excel feature i've been waiting 10 years for
This is the Excel feature I've been waiting 10 years for
January 14, 2026 - SUBSTITUTE could handle this if you knew every possible separator in advance — but you'd need a separate nested function for parentheses, dashes, dots, and spaces. REGEXREPLACE deals with all of them in a single pattern. For years, regex was something Excel users heard about but couldn't touch without switching to Python, VBA, or Power Query.
🌐
Seotoolsforexcel
seotoolsforexcel.com › regexpreplace
Replace Strings with Regex in Excel
=RegexpReplace(Input, Expr, Replacement) : string · Within a specified input string, replaces all strings that match a specified regular expression with a specified replacement string. Uses .Net regular expressions. Working with regular expressions · RegexpIsMatch ·
🌐
Ablebits
ablebits.com › ablebits blog › excel › regex › excel regex examples: using regular expressions in formulas
Excel Regex examples: using regular expressions in formulas
March 9, 2023 - REGEXREPLACE – replaces text based on a pattern. Currently, these functions are only available in Excel for Microsoft 365 and Excel for the web.
🌐
ExcelDemy
exceldemy.com › home › advanced excel › how to find & replace text using regex in excel
How to Find & Replace Text Using Regex in Excel - ExcelDemy
July 15, 2024 - Then the regex is matched using AA_regex.Execute. Depending on the AA_instance_num, the matched text is replaced by AA_text_replace. For error handling, an error case handler (ErrHandl) is declared. As a result, if any error occurs, Excel will display xlErrValue.
🌐
Microsoft Community Hub
techcommunity.microsoft.com › microsoft community hub › communities › products › microsoft 365 › microsoft 365 insider blog
New Regular expression (Regex) functions in Excel
January 31, 2025 - Hey, Microsoft 365 Insiders! My name is Jake Armstrong, and I’m a Product Manager on the Excel team. I’m excited to announce the availability of three new functions that use Regular Expressions to help parse text more easily: REGEXTEST, REGEXEXTRACT, and REGEXREPLACE.
🌐
Excel Insider
excelinsider.com › home › our blog › advanced excel › how to find and replace data with regex in excel (2 examples)
How to Find and Replace Data with RegEx in Excel (2 Examples) - Excel Insider
October 19, 2025 - While Excel does not natively support RegEx in its standard Find & Replace, you can implement it using VBA macros or approximate simpler matches with Excel’s wildcard characters (*, ?, ~).
🌐
Globalexcelsummit
globalexcelsummit.com › post › introducing-the-new-regex-function-set-in-excel
Introducing the new REGEX function set in Excel
September 16, 2025 - Excel has long possessed formula-based ways to extract and manipulate text, such as the LEN, FIND, REPLACE, SUBSTITUTE, LEFT, RIGHT, and MID functions. In more recent times, the likes of TEXTBEFORE, TEXTAFTER, and TEXTSPLIT have arrived. However, for complex cases, it can be a nightmare having to combine several of these to achieve a certain task. Thankfully, the REGEX ...
🌐
Thep Excel
thepexcel.com › home › function explainers › regexreplace – แทนที่ข้อความด้วย regular expression
REGEXREPLACE - แทนที่ข้อความด้วย Regular Expression - Thep Excel
May 31, 2026 - REGEXREPLACE ค้นหาและแทนที่ข้อความจากรูปแบบ Regular Expression ใช้สำหรับ Data Cleaning ที่ซับซ้อน เหมาะสำหรับ Excel 365 รองรับ backreferences
🌐
MrExcel
mrexcel.com › forums › question forums › excel questions
Find and replace function | MrExcel Message Board
Sub DutchGirl() Dim strPattern As String Dim strReplace As String Dim regEx As Object Dim strInput As String Dim va, vb va = Range("A2", Cells(Rows.Count, "A").End(xlUp)).Resize(, 2) 'FIND in col A & REPLACE WITH in col B vb = Range("D2", Cells(Rows.Count, "D").End(xlUp)) 'FIND IN: col D Set regEx = CreateObject("VBScript.RegExp") With regEx .Global = True .MultiLine = True .ignorecase = True For i = LBound(va) To UBound(va) .Pattern = "\b" & va(i, 1) & "\b" strReplace = va(i, 2) For j = LBound(vb) To UBound(vb) strInput = vb(j, 1) If regEx.test(strInput) Then vb(j, 1) = regEx.Replace(vb(j, 1), strReplace) End If Next Next End With 'RESULT IN COL e Range("E2").Resize(UBound(vb), 1).Value = vb End Sub Example:
Published: July 31, 2025
Views: 1M
🌐
Better Solutions
bettersolutions.com › excel › functions › regexreplace-function.htm
Excel REGEXREPLACE Function Examples | BetterSolutions.com
Microsoft Excel · Functions · REGEXREPLACE · Text · Complete List · Alphabetical - R · Index - R · Updated: 01 July 2026 · 01 July 2026 · © 2026 Better Solutions Limited. All Rights Reserved.