<story><title>RegExr 2.0</title><url>http://www.regexr.com</url></story><parent_chain></parent_chain><comment><author>bane</author><text>Regex testing is cool, but there are dozens of these kinds of tools and I&amp;#x27;d really love to see some other kinds of regex tools&lt;p&gt;- A list generator. Enter a regex, set repetition operator constraints (e.g. &lt;i&gt;-&amp;gt;{0,3}, +-&amp;gt;{1,3}, .-&amp;gt;[A-Z0-9 ], etc.) and have it exhaustively generate a list of matching strings. This is helpful when you have a regex that matches your test strings, but also to let you know what &lt;/i&gt;else* it&amp;#x27;ll match. The constraints are to keep it from generating infinite lists. Even if it jams out tens or hundreds of thousands of produced strings, it&amp;#x27;s still useful. I&amp;#x27;ve found that most people just build up the first regex that will &amp;quot;match&amp;quot; their input text, and move on without thinking about all the edge cases they&amp;#x27;ve just introduced.&lt;p&gt;- A regex assembler optimizer. Give it a few regexes, have it assemble them into one large regex and optimize it. It&amp;#x27;s got to do better than just | or&amp;#x27;ing all the regexes together. I&amp;#x27;ve seen some work done on using trie variants to do this, but have no idea how far along the work is on this.&lt;p&gt;- A regex list generator. Give it a list of strings you want to match and have it generate a regex. A sliding &amp;quot;fuzziness&amp;quot; control could tell it to take alternates in the same character position and substitute either&lt;p&gt;1. Just the characters in the given list - a, t and q in the same position generates a|t|q&lt;p&gt;2. A representative narrow character range - if I give it a|t|q it knows to use [A-Z] while a|t|q|4 might generate [A-Z0-9]&lt;p&gt;3. A larger character range, a|t|q might just go ahead and produce [A-Z0-9]&lt;p&gt;4. An even larger character range, whatever it is, just use .&lt;p&gt;And maybe another slider for repetitions, so if I end up with [A-Z][A-Z][A-Z], should it just produce [A-Z]{3} or can I go ahead and have it [A-Z]+&lt;p&gt;Jam the result through an optimizer (see previous idea above) to clean up the regex and maybe even run it through the list generator to check if it produces only what you want.</text></comment>
<story><title>RegExr 2.0</title><url>http://www.regexr.com</url></story><parent_chain></parent_chain><comment><author>lelf</author><text>People just cannot do unicode even remotely properly. Just cannot.&lt;p&gt;𝄞 is one char, not two. привет is matched by \w+.&lt;p&gt;PS there&amp;#x27;s some advanced stuff but where is basic [[:posix:]] char classes?</text></comment>