cancel
Showing results for 
Search instead for 
Did you mean: 

Regular expression in scripts

Highlighted
Frequent Contributor

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 1
Highlighted

RE: Regular expression in scripts

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.



Best regards,
Alexey

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors