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"]
$\endgroup$