Hitachi Vantara Pentaho Community Forums
Results 1 to 5 of 5

Thread: multiple regex's

  1. #1
    Join Date
    Oct 2007

    Default multiple regex's

    hi all

    im using the FTP step to download files from a remote folders.

    there are 16 departments/folders, i only want to download 5 files from each department/folder each month.

    is it possible to separate regex's with a ";" or something like that?

    the alternative is to create an FTP step for each file for each department, which would mean creating 80 steps.

  2. #2
    Join Date
    Nov 1999


    Another alternative is that you loop over a set of locations.
    For each location you set a variable for the ftp-server, directory and regexp.

    Very similar to the Variables example but with a loop above this job.


  3. #3
    Join Date
    Oct 2007


    ah, yes!

    i will try that, saves me creating all the steps

  4. #4


    You can try the RE as followed

    The RE means if the string is "First" or "Second" or "Three", it matches.
    The bracket in RE means "group", "|" means "or"
    Last edited by eugene.zhang; 11-28-2007 at 01:59 AM.

  5. #5
    Join Date
    Oct 2007

    Default thanks

    thanks, it does exactly what I was looking for.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.