EVAL match. how to add word with space?

Discussions and Tech Support related to the iMacros Firefox Add-on, including the built-in Javascript scripting interface for playing .js files.

Moderators: Community Moderators, iMacros Moderators

Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the Google search box (at the top of each forum page) to see if a similar problem or question has already been addressed. This will search the entire contents of the forums as well as the iMacros Wiki.
3. We can respond much faster to your posts if you include the following information:

CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST

Answering your own posts (e.g. attempting to "bump" your topic) drops your topic from the list of unanswered threads, so it may actually receive less views.

EVAL match. how to add word with space?

by nola29385 on Tue Jan 03, 2017 10:58 am

Hey,
this macro works good its extract the first id 'name=*' on the page
SET frame EVAL("'{{!EXTRACT}}'.match(/name="(\w*)"/)[1];")
(if someone know please how to extract every 'name' on the page its can help me too - and not only the first line with 'name')

i want to extract: (my name)
SET frame EVAL("'{{!EXTRACT}}'.match(/my name="(\w*)"/)[1];")
its not working with just space in middle
there is working way?
thank you!
nola29385
 
Posts: 1
Joined: Tue Jan 03, 2017 10:43 am

Return to iMacros for Firefox

Who is online

Users browsing this forum: Bing [Bot] and 13 guests

-->