title: How to get the position of a Regex match in a string?
body: <p>I know how to use preg_match and preg_match_all to find the actual matches of regex patterns in a given string, but the function that I am writing not only needs the text of the matches, but to be able to traverse the string AROUND the matches...</p>
  
  <p>Therefore, I need to know the position of the match in the string, based on a regex pattern.</p>
  
  <p>I can't seem to find a function similar to strpos() that allows regex...any ideas?</p>