The AblebitsRegexRemove function searches for a match with the specified regular expression in a cell, and removes it if finds.
For example:
=AblebitsRegexRemove(A1,"(\d{3}-\d{3}-\d{4})") removes a string that matches the regular expression (\d{3}-\d{3}-\d{4}) in the A1 cell.
Note. Formulas created with this function will work only on machines with installed Ultimate Suite for Excel. If the workbook is opened on another computer where Ultimate Suite is not installed, the result will be lost.
Syntax
AblebitsRegexRemove(reference,regular expression)
The AblebitsRegexRemove function syntax has the following arguments:
-
reference
Required. The cell reference that contains data to search for match with the regular expression and delete it.
-
regular expression
Required. The regular expression.
-
The AblebitsRegexRemove function is used by the Regex Tools add-in when you select Remove option and the check the Insert result as formula box before pasting the result.
To learn more about the Regex Tools add-in and other custom Ablebits Regex functions, please see: