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
🌐
Microsoft Support
support.microsoft.com › en-us › office › regexreplace-function-9c030bb2-5e47-4efc-bad5-4582d7100897
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").
Discussions

Any easy way to use regex in excel?
From experts-exchange.com, I use these amazing UDF regex functions by Patrick G. Matthews all the time. I put all of his functions in one module for simplicity like this. More on reddit.com
🌐 r/excel
3
3
December 10, 2020
New Regular expression (Regex) functions in Excel
So long, I sure am going to miss you =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE())))))))). It's been fun! More on reddit.com
🌐 r/excel
52
232
May 20, 2024
Python in Excel means RegEx in Excel?!

Yes. I'm excited to try this, too. Microsoft's official announcement for Python in Excel specifically notes that regex will be available...

https://techcommunity.microsoft.com/t5/excel-blog/announcing-python-in-excel-combining-the-power-of-python-and-the/ba-p/3893439

More on reddit.com
🌐 r/excel
44
33
August 26, 2023
Regular expressions in formulas
Current beta release includes python references in cells, so yes it's planned. I have seen there are workarounds, but I don't remember the specifics on how they are pulled off (I'm pretty sure PowerQuery was part of it) More on reddit.com
🌐 r/excel
3
2
October 7, 2023
🌐
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.

🌐
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 - As it's generally known, built-in Excel functions do not support regular expressions. To be able to use regexes in your formulas, you need to create your own function. Luckily, the RegExp object already exists in VBA, and we are using this object ...
🌐
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 - We have the Customer Name in Column A, and Credit Card Number in Column B, and the Phone Number in Column C. We want to restore the replaced values in Column D with the help of the regexreplace tool. ➤ Click in cell E2 and enter the formula and press Enter. ... The formatted version of the first credit card number should now appear in E2 with dashes inserted. ➤ Drag the fill handle down from D2 to fill the formula for all rows containing data. ... This method uses Excel’s VBA editor with Microsoft VBScript Regular Expressions 5.5 to find and replace text based on complex patterns.
🌐
Exceljet
exceljet.net › home › functions › regexreplace function
Excel REGEXREPLACE function | Exceljet
June 17, 2025 - To find and replace multiple values (i.e., perform a batch replace all operation), you can use the REDUCE function with a custom LAMBDA function to perform multiple substitutions in a single operation.
🌐
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 - Open an Excel File in which to perform the Regex and Replace operation. Open the VBA Developer Window by pressing Alt+F11. Go to Insert > Module to create a new function. ... Public Function RegexReplace(AA_text As String, pattern As String, AA_text_replace As String, Optional AA_instance_num As Integer = 0, Optional AA_match_case As Boolean = True) As String Dim AA_text_result, AA_text_find As String Dim AA_matches_index, AA_pos_start As Integer On Error GoTo ErrHandl AA_text_result = AA_text Set AA_regex = CreateObject("VBScript.RegExp") AA_regex.pattern = pattern AA_regex.Global = True AA_r
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

🌐
Aiexcelbot
aiexcelbot.com › formulas › text › regexreplace
Formula Generator - REGEXREPLACE function
Use Cases & Examples In these use cases, we use the REGEXREPLACE function to replace specific patterns of text in a string with new text. This function allows us to find and replace text based on regular expressions, providing a powerful tool for manipulating strings in Excel.
🌐
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 - You can create this VBA function in all versions of Excel 365 and Excel 2010 or later versions. ... This function will return the original text if no pattern is found to match. Use double quotes to supply regex patterns in a formula directly. Read More: How to Find & Replace Text Using Regex in Excel
🌐
Acuity Training
acuitytraining.co.uk › news-tips › regex-in-excel-regexreplace
Regex in Excel & REGEXREPLACE - Acuity Training
February 6, 2026 - Instead of building up a few different text functions on top of each other, you can now use regex inside Excel formulas to search for patterns, and clean data much more efficiently. Our favourite of these new additions is REGEXREPLACE, which lets you find text based on patterns and replace data in one simple formula.
Address: 44 Southampton Buildings, WC2A 1AP, London
(4.8)
🌐
SourceForge
sourceforge.net › projects › regex-find-replace-in-excel
Regex Find & Replace in Excel download | SourceForge.net
Regex Find & Replace in Excel - Download Regex Find & Replace in Excel for free. Find and replace using Regex in Excel. Excel Regex Find and Replace The "Excel Regex Find and Replace" is an add-in designed to enhance Excel's native Find and Replace functionality by incorporating regular expressions. Excel Regex Find and Replace · The "Excel Regex Find and Replace" is an add-in designed to enhance Excel's native Find and Replace functionality by incorporating regular expressions. · With this add-in, users gain the ability to search and replace specific patterns of text using regular expressions, rather than simple literal
Rating: 5 ​
🌐
DataCamp
datacamp.com › tutorial › excel-regex-tutorial
Excel Regex Tutorial: Mastering Pattern Matching with Regular Expressions | DataCamp
December 14, 2023 - RegEx Find/Replace: This is an add-in for Excel that allows you to find and replace text using regular expressions.
🌐
XelPlus
xelplus.com › home › tutorials › how to use regex in excel: regexextract, regexreplace & regextest
How to Use Regex in Excel: REGEXEXTRACT, REGEXREPLACE & REGEXTEST
The syntax for the Excel REGEXEXTRACT ... extract. The default is 0. ... The REGEXREPLACE function in Excel lets you replace parts of a text string using patterns called regular expressions (regex)....
Published: April 16, 2026
🌐
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 - Put the pattern in A2 and you'll ... How to extract strings in Excel using regex. The RegExpReplace function replaces the values matching a regex with the text you specify....
🌐
ElyxAI
getelyxai.com › excel formulas › text › regexreplace
REGEXREPLACE Formula in Excel 365 | Text Manipulation | ElyxAI
The REGEXREPLACE function is a powerful text manipulation tool introduced in Excel 365 that enables users to find and replace text patterns using regular expressions.
🌐
Medium
medium.com › @AcuityTraining › regex-in-excel-regexreplace-08a8df7616f3
Regex in Excel & REGEXREPLACE. So Microsoft has finally brought… | by Acuity Training - Power BI / Excel Tips | Medium
February 2, 2026 - Instead of building up a few different text functions on top of each other, you can now use regex inside Excel formulas to search for patterns, and clean data much more efficiently. Our favourite of these new additions is REGEXREPLACE, which lets you find text based on patterns and replace data in one simple formula.
🌐
Excel Road Map
excelroadmap.com › excel road map › functions › excel regexreplace function tutorial
Excel REGEXREPLACE Function Tutorial - Excel Road Map
May 5, 2025 - The REGEXREPLACE function is a powerful tool in Excel that allows users to find and replace substrings within a text using regular expressions.