D
darrel
I'm trying to get the value of a TITLE tag in an HTML document.
I have this as my REGEX:
(\<title\>)(.[^+\<]*)
In plain english, I'm trying ot find two matches:
1 - the opening title tag (<title>)
2 - the text after the TITL tag up to the first less-than sign
So, if this is my test string:
<title>Google</title>
I want to match
1 - <title>
2 - Google
However, in my .net code, it only returns one group match and it's the whole
thing:
<title>Google
Is there an obvious error in my REGEX logic that would be causing this?
-Darrel
I have this as my REGEX:
(\<title\>)(.[^+\<]*)
In plain english, I'm trying ot find two matches:
1 - the opening title tag (<title>)
2 - the text after the TITL tag up to the first less-than sign
So, if this is my test string:
<title>Google</title>
I want to match
1 - <title>
2 - Google
However, in my .net code, it only returns one group match and it's the whole
thing:
<title>Google
Is there an obvious error in my REGEX logic that would be causing this?
-Darrel