Which regular expression should I use with the command grep if I wanted to match the text contained within the tag <div class="Message"> and its closing tag </div> in an HTML file?
Which regular expression should I use with the command grep if I wanted to
Share
Here’s one way using
GNU grep:If your tags span multiple lines, try: