use regex to mark pali words in span