Understanding the "any" character
Posted: Sat Jan 30, 2010 7:29 pm
I have a series of files which contain structures like:
<Z>...<a>...</a><b>...</b>...><c>...</c>...><d>...</d>...etc.</Z>
... stands for multiline content including other xml tags.
I need to replace in all files the the a and b content. I defined my search string as:
<a>[\.\n]{*}</b>
The \. is defined in the manual (version 7.6.3) as any character except newline, hence the collection of these two in the search.
Apparantly this was a naive assumption. What do I miss?
<Z>...<a>...</a><b>...</b>...><c>...</c>...><d>...</d>...etc.</Z>
... stands for multiline content including other xml tags.
I need to replace in all files the the a and b content. I defined my search string as:
<a>[\.\n]{*}</b>
The \. is defined in the manual (version 7.6.3) as any character except newline, hence the collection of these two in the search.
Apparantly this was a naive assumption. What do I miss?