Skip to content

Commit 6fdbd88

Browse files
author
github-actions
committed
Sync regex_inverter example from pyparsing
1 parent 5b33045 commit 6fdbd88

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dest/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ <h4>by Paul McGuire, January 2026</h4>
2222
<details>
2323
<summary>Description</summary>
2424
<div>
25-
<p>This page allows you to invert a regular expression, generating all strings that match it.</p>
25+
<p>This page allows you to invert a regular expression, generating strings that match it.</p>
2626
<p><strong>Instructions:</strong> Enter a regular expression in the "Regex" field and specify the maximum number of results you want to see (up to 100,000,000). Click "Invert" or press Enter to generate the matching strings.</p>
2727
<p><strong>Constraints:</strong></p>
2828
<ul>
2929
<li>Unbounded repetition operators <code>+</code> and <code>*</code> are <strong>not supported</strong>.</li>
3030
<li>Replace <code>+</code> or <code>*</code> with explicit <code>{n}</code> or <code>{min,max}</code> repetition operators (e.g., use an explicit repetition like <code>[A-Z]{1,4}</code> instead of <code>[A-Z]+</code>, or <code>[A-Z]{,4}</code> instead of <code>[A-Z]*</code>).</li>
31+
<li>For brevity, all generated strings in this utility are limited to 7-bit ASCII characters. By default, Python's re methods will match the full Unicode set, so macros like <code>\d</code> could match numeric digits in other language character sets beyond just the ASCII digits '0' through '9'.</li>
3132
</ul>
3233
<p><strong>Note:</strong> Complex regular expressions or those with large repetition counts may take some time to process.</p>
3334
</div>

0 commit comments

Comments
 (0)