title: Regex - find specific number in string
body: <p>I'm struggling with regular expression whole day and couldn't find a solution.
  I'm trying to find some specific number in strings that contains numbers, semicolons, colons and whitespaces.</p>
  
  <p>For our purpose let's say I'm looking for number <strong>1234</strong></p>
  
  <p>Here are few examples which should match (<strong>Every line is a different string</strong>):</p>
  
  <pre><code>1234
  ;1234;
  1234 : 5678
  ;1234,3321
  </code></pre>
  
  <p>And example that shouldn't match (because it's different number):</p>
  
  <pre><code>;12345;
  0123456
  </code></pre>
  
  <p>My current attempt:</p>
  
  <pre><code>[^(0-9*)]1234[^(0-9*)]
  </code></pre>
  
  <p>Here is a permalink to Regex Tester with my problem:
  <a href="http://regexpal.com/?flags=gm&amp;regex=%5B%5E%280-9%2a%29%5D1234%5B%5E%280-9%2a%29%5D&amp;input=1234;12343%20-%20Should%20match%20a%20string%20that%20begins%20with%20nothing%20and%20ends%20with%20semicolon%20and%20other%20numbers%0A;31234;%20-%20It%20contains%20number%20that%20we%20look%20for,%20but%20it%27s%20a%20different%20number%20so%20it%20shouldn%27t%20match%0A1234%20-%20Definitely%20should%20match%0A;1234;%20-%20Should%20match" rel="nofollow">Regex Tester fiddle</a></p>