\n needs to be escaped
AND
When you use an asterisk in a regular expression
it will match any number of the character that
immeadiately precedes it. So ...
grep "<name>*</\name>"
Will match any number of > in between <name>
and <\name>, but . matches any single character
so .* will match any number of any charcter between
<name> and <\name>
Hope what I stated is true and hope it makes sense
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.