regex question

  • Thread starter Thread starter John
  • Start date Start date
J

John

I am not sure if it is the right forum for Regex topic. If not, please point
me the right forum.
For a given string, such as the text read from an aspx file, I need to
programatically identify each asp.net server control. I am not an expert in
regex, can someone give me a hint to write it?

In the HTML, I need to identity the patterns for
<tag * runat="server" * />
or <tag * runat="server" * > * </tag>
In which tag is in the pattern of *:*

Then I need to get the start index and end index of the string that match
the pattern.
Thank you very much for your help!
 
Can't you just recursively loop through all controls on the page when it is
run?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Regex to identify asp.net server control in a given html 3
Regex Help 1
Regex in C# 4
Regex help needed 1
Regex to find text without tag html 2
regex help 1
Regex question 2
RegEx Help - particular anchors 2

Back
Top