title: How to check if an item exists in local storage without having the full path available?
body: <p>I need to check wether a file exists in localStorage.</p>
  
  <p>The filepath consists of</p>
  
  <pre><code>id.version
  </code></pre>
  
  <p>and I only have a the <code>id</code> value to test, which will be a 10 character string followed by the version which is of random length.</p>
  
  <p>I'm used to checking for file existence server side using Coldfusion, where I can do something like this:</p>
  
  <pre><code>fileExists(expandPath(../some/path/to/a/file.*) )
  </code></pre>
  
  <p>where <code>*</code> would be any character.</p>
  
  <p><strong>Question</strong>:<br>
  Is something like this possible using regex, so I could test whether a file that contains the <code>id</code> parameter and any number of characters following the id exist? I don't need to retrieve the file itself, just know if there is at least one with matching <code>id</code> in the path.</p>
  
  <p>Thanks for help!</p>