title: C++ Regular Expressions with Boost Regex
body: <p>I am trying to take a string in C++ and find all IP addresses contained inside, and put them into a new vector string. </p>
  
  <p>I've read a lot of documentation on regex, but I just can't seem to understand how to do this simple function.</p>
  
  <p>I believe I can use this Perl expression to find any IP address:</p>
  
  <pre><code>re("\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b");
  </code></pre>
  
  <p>But I am still stumped on how to do the rest.</p>