Thursday, February 28, 2013

Regular Expression In Decriptive Programming

*************************************************************************************
Regular Expression In Decriptive Programming :
*************************************************************************************

In Descriptive Programming by default the properties will be treated as regular expression when you added to description object


Set oDescription=Description.Create
oDescription("micclass").value= "Browser"
oDescription("openurl").value=
http://www.google.co.in


Here in this URL property there are three dots (.) which can be treated as regular expressions. These dots will work as regular expressions because by default the property values will be treated as regular expressions.

If we don't Want make default regular expression, set the regularexpression property to false to treat "http://www.google.co.in" as a literal string.

Set oDescription=Description.Createo
Description("micclass").value= "Browser"
oDescription("openurl").value= "
http://www.google.co.in"
oDescription("openurl").regularexpression = False

 

No comments:

Post a Comment