I'm trying to look for emphasized words in a text using the following regex
r'\b[A-Z]{2,}\b'
My query on Mongodb is as follows:
db.getCollection('_collection').find({'text': {'$regex': "\b[A-Z]\b"}})
But I'm getting no results while I know there are documents that contain emphasized words in the text.
Emphasized word: "he really LOVES this towel" in this example the "LOVES" is an emphasized word.