REGEX++


Regex for any editor, made accessible


author: chai chaimee

url: https://github.com/chaichaimee/REGEXPlusPlus


Introducing

REGEX++ is an NVDA add‑on that puts the speed and precision of regular expressions (regex) right inside any text editor or editing area – even those that don’t offer built‑in regex tools. Whether you need to clean up messy documents, search through thousands of lines of code, or replace recurring text patterns across an entire file, this add‑on provides a fully accessible, keyboard‑driven dialog that clearly speaks every match, line number, and replacement result through your screen reader. It works by intelligently managing the clipboard to simulate paste actions, making it compatible with virtually any traditional desktop application.


Hotkey

Press ALT+Windows+F while focus is in any editable text field (the add‑on automatically skips browser address bars, File Explorer, and other non‑editable areas). The search and replace dialog will appear instantly.

Important note regarding the hotkey: If you press this shortcut while focus is not inside a supported editable text field, the add‑on will intercept the command and display a clear notification, such as "Regex Replace is only available in a text edit field", instead of forwarding the keystroke to Windows. This prevents the Windows Feedback Hub from opening accidentally—an especially valuable safeguard for Windows Insider users who may have that shortcut reserved by the operating system.


How to Use the Add‑on

  1. Open any text editor or move focus to a text area you can type into (for example, Notepad, WordPad, code editors, or plain‑text fields in traditional desktop applications). Please note: this add‑on does not work inside the main content area of web browsers such as Chrome, Firefox, or Edge.
  2. Press ALT+Windows+F. The search and replace dialog will open.
  3. Type your search term or regex pattern into the Regex Pattern box. You can also select a recently used pattern from the drop‑down list; the add‑on automatically saves your last 15 patterns for quick reuse.
  4. As you type, the dialog performs a live search (with a brief delay for performance) and instantly scans the entire document—or only the selected text if you tick the In Selection Only checkbox. All matches are listed in real time, and the status bar clearly reports the total number of matches found.
  5. Each match appears with its full line of text and corresponding line number. Use the Up and Down Arrow keys to navigate through the list; NVDA will read the line content and announce the selected match position (for example, “Selected: 3 of 12”).
  6. Press Enter on any match in the list to jump directly to that line in your document. The cursor will land precisely on the matched text, and NVDA will speak the matched content for confirmation.
  7. To perform a replacement, enter your desired replacement text in the Replace With box. Click Replace to change only the first occurrence, or click Replace All to update every match simultaneously. After a Replace All, the add‑on automatically double‑checks the document to verify that no unintended matches remain, giving you extra confidence.
  8. After each replacement action, the add‑on announces exactly how many changes were made. It also safely restores your original clipboard content afterwards, so you never lose any data you had copied previously.
  9. Need help building a regex pattern? Click the REGEXGuide button. This opens a separate reference dialog containing a categorized cheat sheet with 259 regex rules across 34 categories—from basic anchors and quantifiers all the way through advanced Unicode properties, lookaround combinations, log parsing, and source‑code patterns. Browse the list by category, listen to the description (and, for many rules, a ready‑made replacement example) for each entry, and press Enter (or click Use Pattern) to copy the pattern—and, when available, the matching replacement text—directly into the dialog’s fields. Every category label, rule title, and description is fully translatable, so you can browse and learn regex in your own language.
  10. When you have finished, press Escape or click the Close button. The dialog will disappear, and you will return to your document with all applied changes already in place.

What's Inside the REGEXGuide

The built‑in cheat sheet currently holds 259 rules organized into 34 categories, grouped here into five broad learning tracks so you can jump straight to what you need:

Many rules—especially the more advanced ones—include a matching replacement example alongside the pattern, so you see not just how to find something but how to transform it, directly inside the guide.


Powerful Features Built for Blind Users


How This Add‑on Improves Your Daily Work


Why Choose This Over Built‑in Find and Replace?

Most find‑and‑replace dialogs in text editors only show you one match at a time, force you to cycle through results blindly, and rarely announce how many matches were found or replaced. They often lack regex support entirely, and even when they do support it, the feedback for screen reader users is frequently incomplete—you might simply hear “not found” with no clue whether your pattern is incorrect or there are genuinely no matches. This add‑on transforms that frustrating experience: it gives you a complete overview of every match, speaks every line number and match count, allows you to jump instantly to any occurrence (not just the next or previous one), and always confirms that replacements actually happened. It turns a guess‑driven, time‑consuming task into a smooth, transparent, and remarkably fast workflow.


Try It Today

If you regularly edit text, code, configuration files, or any kind of document, this add‑on will quickly become an essential part of your NVDA toolkit. It brings professional‑grade search and replace to every corner of your computer, all through a simple, accessible dialog. Download REGEX++ now and experience how much faster and more pleasant text editing can be when your screen reader and your editor work together perfectly.



Support Me

If this tool has made your life easier, consider fueling the next update with a small donation.


Support me


Your support means the world. Let's build something great together