d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Regex Or Getbetween
12Next
Add Reply New Topic New Poll
Member
Posts: 5,760
Joined: Jul 24 2008
Gold: 5.00
Jun 1 2012 11:56am
Does anyone understand either of these?

if so could you possibly help me ?

My source code is below and the information is <span>0.4 mi</span>

Thanks in advance to those that would like to help me :)

Source Code
Code
<span>0.4 mi</span>, <span>1 min</span>   </div>  <div>Beech Tree Ave and Cox's Ln</div>   <div class="dir-altroute-clear"></div> </div> </li><li class="dir-altroute" id="altroute_1" altid="1" oi="alt_1" jsaction="click:ar.select; mouseover:ar.mouseOver; mouseout:ar.mouseOut;"> <div class="dir-altroute-inner">  <div class="altroute-rcol altroute-info"> [u][b]<span>0.4 mi</span>[/b][/u], <span>2 mins</span>   </div>  <div>Beech Tree Ave and Hazel Grove</div>
Member
Posts: 5,760
Joined: Jul 24 2008
Gold: 5.00
Jun 1 2012 03:06pm
Anyone please help me with willing to pay for the code?
Member
Posts: 16,144
Joined: Mar 27 2008
Gold: 14,618.00
Jun 1 2012 03:55pm
so all you need is to extract all ascii chars in front of the first comma?
what values are possible?
(if the "0.4 mi" is always the same size, you could just cut out the first 19 chars...)
regex isn't a standard, so you first need to tell which regex you want to use :) (php?)
Member
Posts: 5,760
Joined: Jul 24 2008
Gold: 5.00
Jun 1 2012 03:58pm
Quote (Richter @ Jun 1 2012 09:55pm)
so all you need is to extract all ascii chars in front of the first comma?
what values are possible?
(if the "0.4 mi" is always the same size, you could just cut out the first 19 chars...)
regex isn't a standard, so you first need to tell which regex you want to use :) (php?)


the information is like 3 lines from maps.google.co.uk

if I posted how much code was actually there I think it would be alot... anyways

what I want is to be able to send a webrequest which I have allready written the get the data using either regex or getbetween method's to get the information where <span>0.4mi</span> is

if this can be done in c#. c++, vb.net ect would be AWESOME I am willing to offer FG for this...

I understand it is a simple piece of code to write but I am currently to busy to figure out the correct method behind it and require support.

Write it and name your price my fine friend and we will work from there...
Member
Posts: 16,144
Joined: Mar 27 2008
Gold: 14,618.00
Jun 1 2012 04:11pm
free:
Member
Posts: 5,760
Joined: Jul 24 2008
Gold: 5.00
Jun 2 2012 10:19am
Quote (Richter @ Jun 1 2012 10:11pm)
free:
http://www7.pic-upload.de/02.06.12/63vsn71kngun.jpg


Now here's the question how would I add that to vb.net? and read from maps.google.co.uk's source code everytime the web address changes?
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jun 2 2012 11:56am
Quote (skeav94 @ Jun 2 2012 12:19pm)
Now here's the question how would I add that to vb.net? and read from maps.google.co.uk's source code everytime the web address changes?


System.Text.Regex iirc?

dunno what your second question is. if you have the url, then you can easily read from it.
Member
Posts: 5,760
Joined: Jul 24 2008
Gold: 5.00
Jun 2 2012 12:10pm
Actually I found that I can not easily read from it :( because google has decided to encrypt there pages :( but if I use inspect element I can see everything clearly
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Jun 2 2012 12:19pm
encrypt or base64 encode?
Member
Posts: 5,760
Joined: Jul 24 2008
Gold: 5.00
Jun 2 2012 12:28pm
Quote (carteblanche @ Jun 2 2012 06:19pm)
encrypt or base64 encode?


actually not to sure

https://maps.google.co.uk/maps?saddr=New+Jersey,+United+States&daddr=I-84+E&hl=en&sll=40.058324,-74.405661&sspn=4.817334,10.755615&geocode=FdQ9YwId46iQ-ymfQACelfvAiTGNbT%5F4B3vSLAFZolfwIdzqOw-w&oq=new+jersey&t=h&mra=me&mrsp=1&sz=7&z=7

go there and inspect the page and search for "214 mi"

This post was edited by skeav94 on Jun 2 2012 12:28pm
Go Back To Programming & Development Topic List
12Next
Add Reply New Topic New Poll