title: use find to match filenames starting with number
body: <p>I am trying to find files that have only numbers in their filenames. For example, if I have the files 123.txt, 45.doc, alpha_123, beta_123.txt, 45 and 123, I only want to match files 45 and 123. I have tried various options with <code>find</code> and <code>grep</code> or combinations of them, but nothing worked as I wanted or gave me syntax errors.</p>
  
  <p>Also is there any chance that I can only match for empty files? I tried using the option "empty" but also was unsuccessful, although this was probably due to using the wrong syntax.</p>
  
  <p>This <code>find . -name "[0-9]*"</code> <strong>kind of</strong> worked, as in it found files with numbers in their filenames, for example file 123 and file 45, but it also found files with an extension, for example 123.txt and 45.doc, and unfortunately this is not what I want. </p>
  
  <p>From the suggestions below (as my original question was heavily edited after answers were posted), what worked exactly as I wanted was <code>$ find .  -type f -name '[[:digit:]]*' | grep -E '.*/[0-9]+$'</code>.</p>
  
  <p>I apologise for the initial misleading/ambiguous post, I hope the edited version will prove helpful for other users also confused about how to use <code>find</code> with regex.</p>