Using a regular expression

Applying eValid to AJAX applications that require advanced DOM-based methods.

Using a regular expression

Postby TerryH » Wed Mar 14, 2012 3:26 pm

Can eValid "validate" that a string exists using a regular expression?
TerryH
 
Posts: 1
Joined: Wed Mar 14, 2012 3:14 pm

Re: Using a regular expression

Postby eValid » Tue Mar 20, 2012 2:51 pm

TerryH wrote:Can eValid "validate" that a string exists using a regular expression?
Yes.

There is a special DOM lookup command IndexFindElementEX that will scan the DOM of the current page for a match against a user-specified regular expression.

So, if you know the regular expression (R.E.) that is going to match your string, you simply run the IndexFindElementEX command using that RE as the argument. If the command succeeds (which you can tell from the EventLog) then you know that eValid has found the RE in the page. If it fails then it has not found the RE.

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


Return to AJAX Applications & DOM Processing

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