note
Anonymous Monk
<blockquote>
<em>
Given a string like "Rich36!", it would produce
<code>\w{4}\d{2}\!</code> or <code>\w+\d+\!</code>.
</em>
</blockquote>
<p>
And why wouldn't it produce one of these
<code>
/\w{6}!/
/\w+!/
/[A-Z][a-z]{3}\d\d!/
/Rich36!/
/......./
/\S+/
/.*/
</code>
<p>
I mean, the tightest or least general thing it could produce when
given a $string is just <code>/\Q$string\E/</code> and the most general
thing would be <code>/.*/s</code>, and between those is a rather large
space of candidates.
194140
194140
56