title: Bash Regex to check if first character of string is a number
body: <p>I'm writing a script that uses trace route. I'm iterating through each line of the trace route and then through each word (separated by whitespace). However, sometimes the trace route returns a <code>*</code> character, which causes issues when echoing (filenames are output).</p>
  
  <p>I've been fiddling with RegEx and so far I've come up with this: </p>
  
  <pre><code>if [[ $item =~ ^\d ]];
  </code></pre>
  
  <p>Item is a portion of the trace route.</p>
  
  <p>For each item in a trace route line, I would simply like to check if the first character is equal to a number or not, then continue accordingly. </p>