Need to replace part of a textbox string using iMacros

时间:2015-05-12 23:28:37

标签: string replace textbox imacros

I have domain directories that need to be updated. The directories look something like this: 'subdomain.mydomain.com/Directory/Sub_Directory

I need to replace: subdomain.mydomain.com/

with: newsub.newdomain.com/

Is there a way to do this with iMacros for Firefox. I have the looping structure working to get in and access each of the 300 text fields but couldn't see if there was a way to change this string.

Any help is much appreciated.

Thanks!

1 个答案:

答案 0 :(得分:0)

SET newDir EVAL("'subdomain.mydomain.com/Directory/Sub_Directory'.replace('subdomain.mydomain.com', 'newsub.newdomain.com')")
'PROMPT {{newDir}}