-1

I have:

<div class="comment-meta commentmetadata"><a href="http://www.printesaurbana.ro/2010/05/unghiile-la-control-predare-caseta.html#comment-6069">
            14.05.2010 la 2:42 pm</a>       </div>

I want select 14.05.2010 la 2:42 pm

I try:

Regex Datet = new Regex(@""">\s*(.+?)</a>\s*</div>");

Problem is that I recive in my results additional catch.

Cœur
  • 37,241
  • 25
  • 195
  • 267
few12
  • 7
  • 1

1 Answers1

2

An HTML parser would be much better for this task. See this famous stackoverflow answer regarding using regex with html RegEx match open tags except XHTML self-contained tags

Community
  • 1
  • 1
Marco Fatica
  • 937
  • 7
  • 12