Test a JavaScript regular expression, highlight matches, list capture groups, and try a replacement.
This tester uses the regular expression engine in your browser, which is the ECMAScript flavor. It is what JavaScript, JSON Schema patterns and many front-end validators use. It is not PCRE. Lookbehind works in current browsers. A pattern copied from a PHP preg_match manual can still fail here if it uses a PCRE-only verb.
The global flag is always on, so you see every match, not only the first. That matches what people expect from a tester. The replacement box uses JavaScript replacement rules: $1, $2, and $$ for a dollar sign.
If you only need to pull matches out of a file and you already know the pattern works, the regex extract tool is the shorter path.
\d+ is enough. Do not wrap it in /\d+/g; flags are the checkboxes.^ and $ match at each line, not only at the ends of the whole text. s lets . match a newline. u turns on Unicode mode, which you want for \p{L} and for astral characters.$1 for the first group. The result is the whole text after substitution, not only the matched pieces.( or a dangling \.. any character except newline, unless s is on. \d digit, \w word character, \s whitespace. Capital forms are the opposite.+ one or more, * zero or more, ? optional. Add ? after those to make them lazy: +?.[a-z] a set. [^0-9] is the set’s opposite. a|b is either branch.(...) captures. (?:...) groups without capturing. The list on this page numbers capturing groups from 1, same as $1.^ and $ are the ends of the text, or of each line when m is on. \b is a word boundary.The pattern did not include it. The highlight is only what the expression consumed. Look at the groups if you expected a piece to be captured separately.
Check the flavor. Editors often use PCRE or a Unicode build where \w includes accented letters. In JavaScript, \w is [A-Za-z0-9_] unless you use Unicode property escapes with the u flag.
A nested quantifier such as (a+)+ on a long failing string can be very slow. The page stops after 5000 matches, but it cannot make a catastrophic pattern fast. Narrow the pattern.