which regular expression will capture this sequence?

Posted by John Smith on Stack Overflow See other posts from Stack Overflow or by John Smith
Published on 2012-11-21T22:58:22Z Indexed on 2012/11/21 22:59 UTC
Read the original article Hit count: 280

Filed under:
|
|

The text follows this pattern

<tr class="text" (any sequence of characters here, except ABC)ABC(any sequence of characters here, except ABC)
<tr class="text" (any sequence of characters here, except ABC)ABC(any sequence of characters here, except ABC)
<tr class="text" (any sequence of characters here, except ABC)ABC(any sequence of characters here, except ABC)
<tr class="text" (any sequence of characters here, except ABC)ABC(any sequence of characters here, except ABC)

so basically the above line might repeat itself multiple times, and the idea is to retrieve the first 3 characters immediately after ABC.

I have tried regular expressions along the lines of

 \<tr class="text" [.]+ABC(?<capture>[.]{3})

but they all fail. Can someone give me a hint?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET