hello. I have a little problem with Python and Regex. In fact, some regex doesn't work if a string does not starts and ends with the same character. For example I have this html tags:
But the 4 tag, the one with meta description, is not working. Python cannot find anything with the regex.
pattern1 = r'<p class="text_obisnuit">.*((bebe|oana|mother|sun).*){3,}.*</p>' pattern2 = r'<p class="text_obisnuit2">.*((bebe|oana|mother|sun).*){3,}.*</p>' pattern3 = r'<title>.*((bebe|oana|mother|sun).*){3,}.*</title>' pattern4 = r'<meta name="description" content=.*((bebe|oana|mother|sun).*){3,}.*>'The first 3 tags are working, because a string is starts and ends with the same character.
But the 4 tag, the one with meta description, is not working. Python cannot find anything with the regex.