Regex

  • Thread starter Thread starter anthonyroche
  • Start date Start date
A

anthonyroche

I have a string coming from a DB to populate a page with data. What I
need is a Regex that will match the following:
<wp:news id="News" runat="server"></wp:news>

however the news string could be different eg:
<wp:login id="Login" runat="server"></wp:login>

Thanks
Anthony Roche
 
Here is a good Regular Expressions reference on the MSDN site:

http://msdn.microsoft.com/library/d...s/cpguide/html/cpconCOMRegularExpressions.asp

Going there and bookmarking that page will not only solve your current
problem, but future ones as well. And here is an excellent freeware tool for
testing Regular Expressions:

http://www.weitz.de/regex-coach/

Between the 2 of those, you should never need to ask again! Good luck!

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
 
Back
Top