Search

 

Module: Editor

Version: 2.2.1 +

Type: String

Category: Text

 

Description

The formula 'ReadFileNames' returns a list of file names in a specified directory that match a search pattern. 
For the search pattern most often a Regular Expression will be used. For more information about this, see the formula 'ValidatePattern'.

Parameters

Directory:

This is the directory to scan

Pattern:

This is the regular expression the file names have to match

Example

Description


Suppose your directory 'c:\inetpub\wwwroot\test' contains the following files:

  • data_input.xml
  • website.xml
  • license.lic
  • dataoutput.xml
  • data.txt

From these files you want to select a list of all files of which the name starts with 'data' and are written in XML.

Values parameters

Directory:

c:\inetpub\wwwroot\test

Pattern:

^(data){1}.*(.xml)+$

Result

data_input.xml

dataoutput.xml

Related Topics

- ValidatePattern

- ReadFileNames

Updated: 2013-06-19