which regular expression will capture this sequence?
- by John Smith
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?