[Tutor] Use Regular Expressions

Kent Johnson kent37 at tds.net
Wed Oct 15 12:42:22 CEST 2008


On Wed, Oct 15, 2008 at 1:27 AM, Basil B Thoppil
<basilbthoppil at gmail.com> wrote:
> Hi everyone,
> I am using the cPAMIE library for automation of websites. It has a function
> findTextbox(name) , which takes the name(a string) of the text box and
> searches for it and return True if it exists. Now I dont have a static name
> and so  I wanted to use regular expression. I cannot pass regular
> expressions directly since it doesnt take a regular expression. How can I
> make use of RE in my function.

Can you get a list of all the text boxes and check their names against
your regex?

Kent


More information about the Tutor mailing list