1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

iMacro java script - please Help

Discussion in 'HTML & JavaScript' started by tien0001, Mar 3, 2013.

  1. tien0001

    tien0001 Newbie

    Joined:
    Mar 3, 2013
    Messages:
    1
    Likes Received:
    0
    Hi everyone,

    I am using iMacro to search a string in the source code.
    The part of the source code could be:

    <dd>3 months ago</dd>
    <dd>1 minute ago</dd>
    <dd>10 weeks ago</dd>


    My iMacro java script trying to find the string before 'ago' (months or minutes or weeks)
    SEARCH SOURCE=REGEXP:"ago</dd>?([^a-z9])" EXTRACT="$1"

    But the result I got is a blank, can anybody please help me?



     
    Last edited: Mar 3, 2013
  2. seocoder

    seocoder Newbie

    Joined:
    May 22, 2013
    Messages:
    12
    Likes Received:
    0
    Try this:

    Code:
    SEARCH SOURCE=REGEXP:"<dd>\d+\s(\w+)\sago</dd>" EXTRACT="$1"


    Please let me know if it worked