Can eValid handle regular expressions?

Discussion of the technology underlying the eValid solution.

Can eValid handle regular expressions?

Postby HaganL » Fri Oct 16, 2015 1:52 pm

Afternoon:

How does eValid handle scripts that include regular expressions?

Can eValid do that?

Thanks

HaganL
HaganL
 
Posts: 1
Joined: Fri Oct 16, 2015 1:49 pm

Re: Can eValid handle regular expressions?

Postby eValid » Mon Oct 19, 2015 11:41 am

HaganL wrote:Afternoon:

How does eValid handle scripts that include regular expressions?

Can eValid do that?

Thanks

HaganL


Thanks for the post HaganL.

Very good question.

First, here is a description of how eValid looks into your page:

http://www.e-valid.com/Products/Documen ... cture.html

So the first thing to do is figure out what you want your script to pivot on, that is, what regular expression do you want to use?

Here are the commands to that do the job:

http://www.e-valid.com/Products/Documen ... ple15.html

The IndexFindElementEx command is the one that you use to include a regular expression rather than a simple string.

In the second example shown above ANY of the strings in the command can be replaced with their regular expression counterpart.

Fair warning, if the page is large and/and your regular expresion is one for which there may be many matches, be prepared for this command to take longer than a simple IndexFindElement command.

The way to minimize this is to use the most precise regular expression possible...so eValid would require the fewest searches on all of the strings in all of the elements in the page.

Remember for a candidate regular expression a match attempt into a property on an element stops as soon as a mismatch has found.

The quicker eValid sees that it is the wrong place the sooner it can go on the next place, etc.

-- eValid Support
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to Technology

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons