html tag finder
-
hi guys i wanna a pattern to find number of html control in whole page i test this pattern but thers no result:
@"\b((<\s*"+pattern+@"{1})\s(\s*\w*\s*\W*\s*\d*\s*)*/>\b)"
that pattern is a variable that contain like img,input and so on
-
hi guys i wanna a pattern to find number of html control in whole page i test this pattern but thers no result:
@"\b((<\s*"+pattern+@"{1})\s(\s*\w*\s*\W*\s*\d*\s*)*/>\b)"
that pattern is a variable that contain like img,input and so on
Perhaps show examples of the HTML and pattern.
-
hi guys i wanna a pattern to find number of html control in whole page i test this pattern but thers no result:
@"\b((<\s*"+pattern+@"{1})\s(\s*\w*\s*\W*\s*\d*\s*)*/>\b)"
that pattern is a variable that contain like img,input and so on
I'm not in the least bit supprised it doesn't work as you expected. It isn't a valid regex. Go to www.ultraPico.com[^] and D/L a copy of Expresso - it examines, designs and explains regexes. It's free, and I use it a lot. I really wish I'd written it!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
-
hi guys i wanna a pattern to find number of html control in whole page i test this pattern but thers no result:
@"\b((<\s*"+pattern+@"{1})\s(\s*\w*\s*\W*\s*\d*\s*)*/>\b)"
that pattern is a variable that contain like img,input and so on
Take out both occurrences of "\b".
moein.serpico wrote:
{1}
That is completely useless.
moein.serpico wrote:
(\s*\w*\s*\W*\s*\d*\s*)*
And what is all that for?
-
I'm not in the least bit supprised it doesn't work as you expected. It isn't a valid regex. Go to www.ultraPico.com[^] and D/L a copy of Expresso - it examines, designs and explains regexes. It's free, and I use it a lot. I really wish I'd written it!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
OriginalGriff wrote:
It isn't a valid regex.
Works fine for me. Doesn't produce the expected results, but it will compile and it does return results under certain scenarios.
-
hi guys i wanna a pattern to find number of html control in whole page i test this pattern but thers no result:
@"\b((<\s*"+pattern+@"{1})\s(\s*\w*\s*\W*\s*\d*\s*)*/>\b)"
that pattern is a variable that contain like img,input and so on
You could have my TIP[^] to be useful.
Regards, Hiren.
My Recent Article: - Way to know which control have raised PostBack
My Recent Tip/Trick: - Remove HTML Tag, get plain Text