title: How to Find Next String After the Needle Using Strpos()
body: <p>I'm using PHP <code>strpos()</code> to find a needle in a paragraph of text.  I'm struggling with how to find the next word <em>after</em> the needle is found.</p>
  
  <p>For example, consider the following paragraph.</p>
  
  <pre><code>$description = "Hello, this is a test paragraph.  The SCREENSHOT mysite.com/screenshot.jpg and the LINK mysite.com/link.html is what I want to return.";
  </code></pre>
  
  <p>I can use <code>strpos($description, "SCREENSHOT")</code> to detect if SCREENSHOT exists, but I want to get the link after SCREENSHOT, namely <code>mysite.com/screenshot.jpg</code>.  In a similar fashion, I want to detect if the description contains LINK and then return <code>mysite.com/link.html</code>.</p>
  
  <p>How can I use <code>strpos()</code> and then return the following word?  I'm assuming this might be done with a RegEx, but I'm not sure.  The next word would be "a space after the needle, followed by anything, followed by a space".</p>
  
  <p>Thanks!</p>