Ah OK, thanks for the clarification indeed, so I was right with the _\"_, using Backslashes as well on MacOS, I didn't know for sure as I don't use .js Scripts and especially not on a Mac...!BlueOne wrote:To clarify the situation![]()
I wanted to adapt this imacros (.iim) for javascript (.js):I simply had to replace " of the REGEX by \"Code: Select all
SEARCH SOURCE=REGEXP:"De ([0-9]{1} [0-9]{3} [0-9]{3} €)" IGNORE_CASE=YES EXTRACT=$1
So i finally succeed with this code:I use Imacros for Firefox 8.9.4 on Mac OSCode: Select all
extract ="SEARCH SOURCE=REGEXP:\"De ([0-9]{1} [0-9]{3} [0-9]{3} €)\" IGNORE_CASE=YES EXTRACT=$1"+ "\n";
Woaw...!, it works...!! I'm nearly more impressed than you, I guess, as I don't use this Construction/Syntax myself at all...BlueOne wrote:I am aware that this is not the most optimal thing to do ...![]()
And thank you to share your experience with me.
Your second proposition works !!Code: Select all
extract +="SET !VAR1 EVAL(\"var a=\\\"{{!EXTRACT}}\\\"; a.replace(\\\" \\\",\\\"\\\");\")"+ "\n";

Thanks for the Feedback...