fileset-local pattern

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf fileset-local pattern

  • Creator
    Topic
  • #52668
    Roman Partigula
    Participant

      Hi

      We have Cloverleaf 5.8

      I use this proc to parse a directory

      fset_ib_dirParse_regexp

      I have a problem using a wild card in my pattern to get multiple files

      this works for me

      { PATTERN rad_data_file.txt }

      and this doesn’t

      { PATTERN rad_data_file*txt }

      Can you tell me please what do I do wrong ?

    Viewing 5 reply threads
    • Author
      Replies
      • #75055
        Jerry Tilsley
        Participant

          Can you post the actual script so we can take a look.

        • #75056
          Scott Folley
          Participant

            If it is a regular expression then the asterisk says to match the previous character, a period says to match any character.  So your expression would match:

            rad_data_fileetxt

            but not:

            rad_data_file.txt

            The first one works because the period is a wildcard but if you really want to match the period then you would have to escape it:

            rad_data_file.txt

          • #75057
            Roman Partigula
            Participant

              Jerry Tilsley wrote:

              Can you post the actual script so we can take a look.

            • #75058
              Roman Partigula
              Participant

                Scott Folley wrote:

                If it is a regular expression then the asterisk says to match the previous character, a period says to match any character.

              • #75059
                David Barr
                Participant

                  rad_data_file.*.txt

                • #75060
                  Roman Partigula
                  Participant

                    David Barr wrote:

                    rad_data_file.*.txt

                    ok thanks

                Viewing 5 reply threads
                • The forum ‘Cloverleaf’ is closed to new topics and replies.