| || |
How do I use a reg exp in an object property?
I'm working a website being developed with .Net, and there are a lot of like objects across screens. The problem is that .Net is putting a prefix, like _ctl9:, on the begining of each object. The 9 in _ctl9: changes from page to page and even on the same page after a new build.
Can I use a regular expression to defeat that changing prefix?
An example is an object with a name of _ctl9:txtFirstName. I've tried changing it to .*txtFirstName.*, but that won't recognize that textbox on another page when it's named _ctl7:txtFirstName.
Any help would be much appreciated.
Re: How do I use a reg exp in an object property?
Figured it out myself. I was just typing directly in to the edit value box. You have to click the little "Edit Constant Value Options" button and check the regular expression checkbox. Then you put the reg. exp. in the property value and click OK.