fazni's picture
added app.py file with all other files
b06ff0c
raw
history blame
No virus
473 Bytes
import re
def FindKeyWords(keywords, text):
highlighted_text = text
for keyword in keywords:
if re.search(r'\b({0})\b'.format(re.escape(keyword)), highlighted_text, flags=re.IGNORECASE):
highlighted_text = re.sub(r'\b({0})\b'.format(re.escape(keyword)), r'<mark style="background-color: yellow;">\1</mark>', highlighted_text, flags=re.IGNORECASE)
else:
return "Keyword not found in the Resume."
return highlighted_text