title: Complex regex pattern not recognizing spaces?
body: <p>I have a regex pattern which captures what I want in about 50% of cases, I've found that the cases where it doesn't match it has to do with spaces in the string.  This is with javascript Regex BTW.</p>
  
  <p><strong>REGEX PATTERN:</strong> </p>
  
  <p><code>/\[url="https?:\/\/([a-z0-9-]+\.)*cnn\.com\/newsreel\/showreel\.php\?id=?([^\s]*[^.])?\"\]([^\s]*[^.])\[\/url\]/gi</code></p>
  
  <p><strong>STRINGS TO MATCH ON</strong></p>
  
  <p>A)   <code>[url="http://www.cnn.com/newsreel/showreel.php?id=977976"]Test123[/url]</code></p>
  
  <p>B)   <code>[url="http://www.cnn.com/newsreel/showreel.php?id=977976"]Test 1 2 3[/url]</code></p>
  
  <p>Now if i try to run this pattern on A, it works A-ok.   But on B, it fails, because of all the spaces.</p>
  
  <p>I think it has to do with my 3rd matching group <code>([^\s]*[^.])</code> which I guess isn't catching spaces.  Anyone have any ideas how I can get it match spaces as well?</p>
  
  <p>Thank you!</p>