Hi.
Im looking to extract a value based on several criteria. I have been trying back and forth but without luck. Somehow I feel like im on the right path.
I know this isnt a forum for such questions but if anyone knows a good source to search for clues I am happy to be advised.
But if someone here are experts I wouldnt deny tips either, above is the source I want to be searching, The img src has different values and i want to grab the code if the source for the image has the numbers 8d16e6e.svg as above.
Further the code has to contain "bustout"value="****" If that is the cases I want to grab the numbers where i have typed ****.
So far i got this:
But it gives me all the values no matter if the picture code is wrong or not.
Im looking to extract a value based on several criteria. I have been trying back and forth but without luck. Somehow I feel like im on the right path.
I know this isnt a forum for such questions but if anyone knows a good source to search for clues I am happy to be advised.
Код:
[LIST=1]
[*] <tr>
[*] <td style="padding:2px;padding-right:4px;" align="right" width="10%">
[*] <img src="//ng.crimecdn.com/svg/star/86ec4d1.svg" height="28">
[*] </td>
[*] <td style="padding:2px;padding-left:4px;" width="30%">
[*] <span style="font-size:14px;"><a class="userProfile" contextmenu="profileMenu" ns-username="Endless" href="profile/Endless">Endless</a></span><span style="float:right;opacity:0.5;"></span><br><span style="color:#777;font-size:12px;">Thief, Level 1</span>
[*] </td>
[*] <td style="" align="center" width="10%">
[*] <img src="//caviar.dtmcdn.com/static/layout/crewnone.png" style="opacity:0.45;">
[*] </td>
[*] <td style="padding:2px;" width="25%">
[*] <span style="color:#777;font-size:12px;">Car Theft</span><br><span style="font-size:14px;">Gang Crackdown</span>
[*] </td>
[*] <td style="padding:2px;" align="center" width="10%">
[*] <span style="font-size:14px;"><span id="count46967">00:57</span></span>
[*] </td>
[*] <td style="padding:2px;" align="center" valign="middle" width="15%">
[*] <form method="POST" action="/jail" style="padding:0;margin:0;"><button name="bustout"value="46967" class="sub" style="margin:0;">Bust Out</button></form>
[/LIST]
Further the code has to contain "bustout"value="****" If that is the cases I want to grab the numbers where i have typed ****.
So far i got this:
Код:
(?<=<img src="//ng.crimecdn.com/svg/star/)86ec4d1(?=.svg" height="28">)|(?<=<form method="POST" action="/jail" style="padding:0;margin:0;"><button name="bustout" value=")\d+(?=" class="sub" style="margin:0;">)