given a String:
string = "the cat is on the mat"
and given a String-Pattern
stringPattern = "c" ~~ _ ~~ "t"
question
write a function that formats its output such that every occurrence of the String-Pattern in the String is Highlighted
f[string, stringPattern]



ResourceFunction["HighlightText"]["This is some test text.", "test"]– Jason B. May 27 '21 at 11:10