title: Junit-Quickcheck: Generate String matching a pattern
body: <p>I am using pholser's port. I have to generate strings matching a given pattern like <code>\[a-zA-Z0-9\\.\\-\\\\;\\:\\_\\@\\[\\]\\^/\\|\\}\\{]* Length 40</code>.</p>
  
  <p>I extend the Generator class as:</p>
  
  <pre><code>public class InputGenerator extends Generator&lt;TestData&gt; {...}
  </code></pre>
  
  <p>It overloads a function:</p>
  
  <pre><code>publicTestData generate(SourceOfRandomness random, GenerationStatus status) {...}
  </code></pre>
  
  <p>Now, random has functions like <strong>nextDouble(), nextInt()</strong> but there is nothing for strings! How can I generate random strings matching the above pattern?</p>