mercredi 27 janvier 2016

Need to highlight particular pattern of text

I have a file with some paragraphs, what i want to do is to highlight certain pattern of text/words occurring in the text file with background yellow and text color black.

pattern = ["enough", "too much"];
Text file = "text.txt";

and show it on a webpage with highlighted text for enough and too much words in the text file.

I want to use perl to do this task. Please tell me how i can do this in optimized way.




Aucun commentaire:

Enregistrer un commentaire