help with eval and match to get text!

Support for iMacros. The iMacros software is the unique solution for automating every activity inside a web browser, for data extraction and web testing.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
bilgamyompi
Posts: 30
Joined: Mon Feb 12, 2018 7:03 pm

help with eval and match to get text!

Post by bilgamyompi » Tue Feb 20, 2018 9:43 pm

I'm trying to get the words that are before the parenthesis?
for example i was trying with this page simple:
https://en.wikipedia.org/wiki/Galileo_Galilei

I want to get the words like this:
wordafterparenthesis (Text)
In my case i want to extract the text before:
wordafterparenthesis
example page:
https://en.wikipedia.org/wiki/Galileo_Galilei

i tried with:

Code: Select all

SET !VAR1 EVAL("var s='{{!EXTRACT}}'; s.match(/value=^\s+[a-zA-Z-0-9]+)\s*; s[0]")
error:
unterminated regular expression literal, line: 16 (Error code: -1001)
someone can help??
Post Reply