iMacro java script - please Help

tien0001

Newbie
Joined
Mar 3, 2013
Messages
1
Reaction score
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:
Try this:

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

Please let me know if it worked
 
Back
Top