contact  |  about  |  sitemap

Another Method for extraction?
Last Post 30 Mar 2010 12:04 AM by jimmy. 5 Replies.
Sort:
PrevPrev NextNext
Author Messages
jimmy

--
27 Mar 2010 12:56 PM
<H1 style="FLOAT: none" class="marb2 marr10">2271 Knapp St #1C, <SPAN class=subaddress>Brooklyn NY 11229</SPAN> </H1>

<DIV class="property_details clear">3 br <SPAN class=vbar>|</SPAN> 1 ba <SPAN class=vbar>|</SPAN> 1,100 sqft <SPAN class=vbar>|</SPAN> Coop </DIV></DIV>

I want to capture the 1,100 sqft (or ideally just the 1,100) The problem is it is too hard to find a specific tags. Is there another method to use? Is reg ex possible? I have isolated this chuck of html as source variable already.

thanks


Tijn

--
28 Mar 2010 12:14 PM
Did you try a wildcard like:

Copy Text Between from <DIV class="property_details clear">*|</SPAN> till sqft.

Regards,
Tijn


Tijn

--
28 Mar 2010 12:14 PM
You can also use a regex.

See the match regex action example.


jimmy

--
29 Mar 2010 06:42 PM
thanks, but using the above tag you mentioned with the wildcard

<DIV class="property_details clear">*|</SPAN>

captures the first instance of |</span> and not the second one, so it actually returns 1 ba <SPAN class=vbar>|</SPAN> 1,100

i tried 2 wildcards and that did not work, any recommendations? i am using business edition.


Tijn

--
29 Mar 2010 09:13 PM
Two wildcards should do the trick.
See the attached example.
Tijn

example_tijn.djs

jimmy

--
30 Mar 2010 12:04 AM
thanks, that worked i was placing ** right after each other and not between the </span> tags like you did, thanks for continuing to answer on such a same detail...


when using reg-ex to locate text to extract in html source, does it also follow the cursor position rule?

it seems using html "from/to" tags to isolate text can cause issues since it starts its next search where the last one left off (before.after search string)

would you say reg-ex is better then html tags, if not pl explain.

thanks




Quick Reply
toggle
  Username:
Subject:
Body:
Security Code:
Enter the code shown above:

Submit

Powered by Active Forums

Forum participation and optional registration

You don't need to be registered to partcipate in the Djuggler forums, however if you want to subscribe to email notifications you need to register. You can also subscribe to the forum RSS feed.