Hi,
I'm using regular expressions to extract some information from my
vb.net source code files.
I have something like this:
1: '<class name="xyz" description="xxxxxx"/>
2: Class xyz
... other lines of code ...
y: End Class
I want to extract with regular expression a string that contains the
file from line 1 to line y. To do this I use the following regular
expression pattern:
'\s*<class.*End\s+Class
But it doesn't work, it returns zero matches. I tried to set the
IgnoreCase flag, the MultiLine flag, but there is nothing to do. Note
that if I use the following pattern:
'\s*<class.*/>
to extract only line 1 it works.
So it seems that the .* (It should match all characters between
'<Class and End Class) doesn't work when there are multiple lines.
What can I do?
Thanks in advance for the help.
Bye
Gianluca