regular expression to select an input field?
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
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
regular expression to select an input field?
I'm new to iMacros and find it really well done!
I have a basic question though: Is it possible to use a regular expression to select an input field?
Let's say I use a TAG command, can I use a regex after the ATTR part? I'd like iMacros to be able to fill any fields containing "email", for example. The name (or id) of that field could be "email", "user_email", "emailadress", etc.
I'd like to automate the process of filling forms on different websites, and those don't have the same names for the inputs to fill.
Thanks for the help!
I have a basic question though: Is it possible to use a regular expression to select an input field?
Let's say I use a TAG command, can I use a regex after the ATTR part? I'd like iMacros to be able to fill any fields containing "email", for example. The name (or id) of that field could be "email", "user_email", "emailadress", etc.
I'd like to automate the process of filling forms on different websites, and those don't have the same names for the inputs to fill.
Thanks for the help!
Re: regular expression to select an input field?
I found that: http://forum.imacros.net/viewtopic.php?f=15&t=2514 : you can use "*" and "ERRORIGNORE" with multiple choices..
Regular expressions would be really appreciated though!
Thanks!
Regular expressions would be really appreciated though!
Thanks!
Re: regular expression to select an input field?
Hello,
Thank you for your appreciation and suggestion.
I will add the Regular Expression to iMacros wish list.
Thank you for your appreciation and suggestion.
I will add the Regular Expression to iMacros wish list.
-
- Posts: 11
- Joined: Tue Apr 04, 2006 3:40 am
Re: regular expression to select an input field?
This would be very useful and simplify a lot of scripting for me.
Re: regular expression to select an input field?
REGEX is in there now, not for selecting inputs, but for extracting text. see:
http://wiki.imacros.net/SEARCH
http://wiki.imacros.net/SEARCH
-
- Posts: 11
- Joined: Tue Apr 04, 2006 3:40 am
Re: regular expression to select an input field?
Cool - that is good for an extract. I am trying to do an autofill form fill for various pages instead of using a program such as roboform.
It would be good to be able to specify .*firstname.* rather than *irstnam*. Its for a rather specific purpose
VERSION BUILD=7210419 RECORDER=FX
ONERRORDIALOG BUTTON=YES CONTINUE=YES
SET !ERRORIGNORE YES
SET !TIMEOUT 1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:* ATTR=ID:*irstnam* CONTENT=Adam
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:* ATTR=ID:*astNam* CONTENT=Law
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:* ATTR=ID:*urnam* CONTENT=Law
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:* ATTR=ID:*addres* CONTENT=18<SP>Dundulk<SP>Drive
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:* ATTR=ID:*tree* CONTENT=18<SP>Dundulk<SP>Drive
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:* ATTR=ID:*ubur* CONTENT=Nedlands
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:* ATTR=ID:*ity* CONTENT=Perth
It would be good to be able to specify .*firstname.* rather than *irstnam*. Its for a rather specific purpose
VERSION BUILD=7210419 RECORDER=FX
ONERRORDIALOG BUTTON=YES CONTINUE=YES
SET !ERRORIGNORE YES
SET !TIMEOUT 1
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:* ATTR=ID:*irstnam* CONTENT=Adam
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:* ATTR=ID:*astNam* CONTENT=Law
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:* ATTR=ID:*urnam* CONTENT=Law
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:* ATTR=ID:*addres* CONTENT=18<SP>Dundulk<SP>Drive
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:* ATTR=ID:*tree* CONTENT=18<SP>Dundulk<SP>Drive
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:* ATTR=ID:*ubur* CONTENT=Nedlands
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:* ATTR=ID:*ity* CONTENT=Perth