Help With Regex Capture
-
I'm trying to capture the IMEI, TAC, Serial, CheckSum, And Version within this code....
Here's the full log https://vim.cx/?05fcc5017ddd6371#56mUWwQq4yKiP6eD2PAuVjfoeRwpMov2Z1itGpiXEZpR
Sorry I had to upload it. Past the character limit for posts.
</div> <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"> <div id="panel_meta" class="panel panel-default"> <div class="panel-heading"> <i class="fa fa-info"></i> ESN Meta Data </div> <table class="table table-condensed"> <tr> <td>IMEI</td> <td>990012005756470</td> </tr> <tr> <td>TAC</td> <td>99001200</td> </tr> <tr> <td>Serial</td> <td>575647</td> </tr> <tr> <td>Checksum</td> <td>0</td> </tr> <tr> <td>Version</td> <td>-</td> </tr> </table> </div> </div> <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"> </div> </div> </div> </section>
I've tried multiple regex lines to capture the data, but I can't seem to only capture the numbers. It keeps the <td>, or just captures too much.
Thank you to anyone who helps!
-
Hey @TrillyReign
I'm not available at the moment if you haven't received any help send me a discord message here GrossZouille#5887
I'm available tommarow in the night
-
Thank you!
-
https://regexr.com/
<td>IMEI</td>\s <td>(.*?)</td>
-
Thank you for helping, and that's what I was trying to use before.
To clarify, it doesn't work
you can test it on that site you sent, if you wish.
-
Regex:
IMEI.*>([0-9]+)<.*>([0-9]+)<.*>([0-9]+)<.*>([0-9]+)<.*td>(.+)<\/td>
Format:IMEI [1] | TAC [2] | SERIAL [3] | CHECKSUM [4] | VERSION [5]
https://regex101.com/r/Y7MxAs/1
-
@Ruri said in Help With Regex Capture:
IMEI [1] | TAC [2] | SERIAL [3] | CHECKSUM [4] | VERSION [5]
I'm still receiving the error. My keycheck sees the variables, but the parse still doesn't
[REDACTED]
Thank you for your help!
-
I linked you the regex101, which is correct as you can see. So the regex works, I don't know what's causing your issue.
-
Kindly use the following Regex for each:
<td>IMEI<\/td>\s+<td>(.*?)<\/td> ___ <td>TAC<\/td>\s+<td>(.*?)<\/td> ___ <td>Serial<\/td>\s+<td>(.*?)<\/td> ___ <td>Checksum<\/td>\s+<td>(.*?)<\/td> ___ <td>Version<\/td>\s+<td>(.*?)<\/td>
-
@Ruri ....so it's a issue with OpenBullet?
And I'm thinking the same. I can't figure out why no regexs I've tried will not work.
-
Please read the comments, and thank you for helping!
-
I honestly have no idea why it wouldn't work
-
Here's the full log. I couldn't post it because it's over 30,000 characters (past the limit you have set)
https://vim.cx/?05fcc5017ddd6371#56mUWwQq4yKiP6eD2PAuVjfoeRwpMov2Z1itGpiXEZpR
Maybe that will help...
-
well it would be great if we could test our capture b4 using debug, I think that function exist on sentry, it why sometimes capture is really tough
-
@wolfachraf just a regex tool, or similar