Forum Discussion

sarya's avatar
sarya
Frequent Contributor
15 years ago

Regular expression in scripts

Hi,



I have a script in which I have to match the pattern "C:\Program Files (x86)\Report2Web Client Tools\Temp\SimulatedReports\FirstAutoContacts2008-06-24T105512.PAGEMART" .Since the part "2008-06-24T105512" will change everytime I run the script ,so how can I use regular expressions to verify that the value T105512 as the numbers after letter T will change everytime after the script run. I read the help files for regular expressions but it is kinda hard to understand .Please suugest me the regular expression for this .



Thanks.

Sumedha

1 Reply

  • Hi Sumedha,


    If you need to ignore the variable part, you can simply use "C:\Program Files (x86)\Report2Web Client Tools\Temp\SimulatedReports\FirstAutoContacts.*PAGEMART" as the recognition pattern. Note that the ".*" part stands for any number of any characters.