Highlighting text based on user input

@scottb
I think that if you put:
. filter ( e => e )
in the second line (see update above) it will solve the extra “>” (but your way can also work). It’s the same.
If you wish to make a replace case-insensitive, you’ll have to use regex.
Google “case insensitive replace method” and you’ll find plenty of explanations how to do it…