title: Regex check if number to n-root is not floating point
body: <p>I am trying to work out how to do something using regular expressions.</p>
  
  <p>Basically, I want to check if a number is equal to a base number (i.e. 2) to the power of n.</p>
  
  <p>For example, I need something thats checks if number i == 2, 4, 8, 16 or 32 then do something.</p>
  
  <p>Edit:
  The problem lies where the number is actually coming from a varchar column in a legacy database. I could parse it out then do something like kobi reccommended but there is another problem where the number is in a delimited list i.e. (1,2,3,32). Therefore, I thought it would be easier to use regex as it would save a number of steps.</p>
  
  <p>Thanks in advance.</p>