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

  • 0
  • 1
  • Question
  • Updated 3 months ago
  • Answered
Photo of Ashok Kumar

Ashok Kumar

  • 240 Points 100 badge 2x thumb

Posted 5 months ago

  • 0
  • 1
Photo of John Hanratty

John Hanratty, Employee

  • 690 Points 500 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

- Jack