How to create file name patterns of file masking in Delphix 5.2.6.1 version.

  • 0
  • 1
  • Question
  • Updated 22 hours ago
  • Answered
Photo of Ashok Kumar

Ashok Kumar

  • 100 Points 100 badge 2x thumb

Posted 3 weeks ago

  • 0
  • 1
Photo of John Hanratty

John Hanratty

  • 220 Points 100 badge 2x thumb
Official Response
Hello Ashok: java based regular expressions are used for creating patterns in file masking.  

Example:          To mask only/all files like “HR_File” with a date stamp

Pattern:            (?>(^HR_FILE_)[0-9]{8}(.txt)) 

File names found are: 

               HR_File_20150912.txt, HR_FILE_20150914.txt, HR_File_20150916.txt

File name not matched may be: 

               JH_HR_File_33333333.txt, HR_File_not.txt, XX_File_20100101.txt

Additional help in writing regular expression can be found at Regex Planet 

http://www.regexplanet.com/advanced/java/index.html


- Jack 

Photo of Ashok Kumar

Ashok Kumar

  • 100 Points 100 badge 2x thumb
Thank you so much for your help John