Page 1 of 1

help with eval and match to get text!

Posted: Tue Feb 20, 2018 9:43 pm
by bilgamyompi
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??