how to use regular expression in web_reg_save_param in VUGen?

I have a trouble in correlating a Link ID which is some value inside changes from link to link. so I need to create a regular expression to handle all of the variable values in the page.

below are the lines of code I use :

web_reg_save_param("corr_activitysubcategory", 
    "LB/IC=categorysearchCats_lnkCat_16\" href=\"/category/Search.aspx\?s=&t=4&f=28&v=",
    "RB/IC=&sh=0&", 
    "Ord=all", 
    "Notfound=warning",
    "Search=body", 
    "RelFrameId=1", 
    LAST);

the number (16) is varies for each link... so I need to put a regular expression to ignore the number. I tried put .* instead of 16 but it results in no data matched.

Answers


Try this regular expression:

categorysearchCats_lnkCat_[0-9]+\" href=\"/category/Search.aspx


Need Your Help

Python: datetime.date “expected datetime, got int”

python datetime typeerror

So, for a long time now, I have been using code like the following in Python for version tracking:

Php loop create array inside php code

php

I need some help with the following code...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.