title: beautifulsoup finding text inside of attributes
body: <p>as the title says, i'm trying to figure out how to find text inside of attributes using BeautifulSoup, lets look at the example below, given the html:</p>
  
  <pre><code>&lt;html&gt;
     &lt;head&gt;
     &lt;/head&gt;
     &lt;body&gt;
        &lt;input class="form-control" name="searchString" type="text" value="myString"/&gt;
        &lt;h2&gt; your string is myString&lt;/h2&gt;
     &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>im trying to find all the tags that has the text "myString" so i tried to do as follows:</p>
  
  <pre><code>soup = BeautifulSoup(doc, "html.parser")
  soup.find_all(text=re.compile("myString"))
  </code></pre>
  
  <p>but unfortunately it returns just one result</p>
  
  <pre><code>[' your string is myString']
  </code></pre>
  
  <p>ignoring the input that had the string i searched in its value attribute.
  any suggestions?
  thanks in advance</p>
  
  <p>is there any generic way to get the tag if i don't know that my string appears in value attribute ? it could appear in any other attribute or even on an onClick event for example, how can i search for my string without knowing where it appears?
  for this example i would have to write <code>soup.find_all(onclick=re.compile("myString"))</code></p>
  
  <p>thanks</p>