title: How do I find the position of a (fuzzy) match within a string?
body: <p>I have a text processing problem in R. I want to get the character within a string where a different string makes an exact match and/or a fuzzy match with some edit distance. For example:</p>
  
  <pre><code>A = "blahmatchblah"
  B = "match"
  C = "latch"
  </code></pre>
  
  <p>I would like to return something telling me that the 5th character within string A is where the match for a search of both B and C. All the pattern matching tools I'm aware of will tell me if there's a (fuzzy) match for B and C within A, but none for where that match begins.</p>