Hello i'm having a script but when i try to catch info that i need i cant this is the part of html code that i would like to get:
<div class="pretty-container " >
2100.0
</div>
So on my socket y try to do this to get the 2100.0(2100.0 it is a variable number):
on *:sockread:foo: {
var %read
sockread %read
if ($regex(%read,<div class="pretty-container " >(.*)<\/div>)) {
echo -s price founded: $regml(1)
; - here i try to catch the 2100.0 number
sockclose $sockname
}
}
but this doesn't work i believe it is because the number and are in another line. con some one helpme to solve this please?
thanks in advace,
Carlos