i would like to extract the exact matching value of text from html by using beautifulsoup.But i am getting some almost matching text with my exact text.
my code is:

```
from bs4 import BeautifulSoup
import urllib2enter code here
url="http://www.somesite.com"
page=urllib2.urlopen(url)
soup=BeautifulSoup(page,"lxml")
for elem in soup(text=re.compile("exact text")):
   print elem

```

for the above mentioned code output is like:

```
1.exact text
2.almost exact text

```

how can i get only the exact match by using beautifulsoup?
note:the variable(elem) should be in `<class 'bs4.element.Comment'>`type