Which regular expression should I use with the command grep if I wanted to match the text contained within the tag and it
and it
You can do that by specifying a regex:
grep -E "^.*$" input_files
Not that this will only print the enclosures found on the same line. If your tag spans multiple lines, you can try:
tr '\n' ' ' < input_file | grep -E "^.*$"