--- title: "LoadFilePreparser" slug: "load-file-preparser" updated: 2026-09-09T11:53:50Z published: 2026-09-09T11:53:50Z canonical: "docs.lobstersoftware.com/load-file-preparser" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # LoadFilePreparser | **Class name** | com.ebd.hub.datawizard.parser.LoadFilePreparser | | --- | --- | ## Description This Preparser loads an external file and replaces the original input file. It is mandatory to define a regular expression in the configuration file, that is used to define the original file name, to determine the name of the replacement file. ## Parameters | Parameter | Description | | --- | --- | | loadfile.filename.srcregex | (mandatory) The regular expression to be performed on the original filename. If it is missing, the preparser will fail with an error message. | | loadfile.filenameregex.usegroup | The group number (zero indexed) to be used. *(bla)(blub)* will return *bla*, if *group* is set to *0*, and will return *blub* if *group* is set to *1*. If not specified, *0* will be used by default. | | loadfile.filename.insertstring | The rule to build the filename to look for. The string *${src}* will be replaced by the result of the regular expression matching. If not specified, *${src}* will be used by default. | | backupfile.extension | The extension of the loaded file, when it is saved to the backup directory together with the originally loaded and the environment file. If not set, *.ext* will be used. | | loadfile.deletefile | If set to *false*, the loaded file will not be deleted after being saved to the backup directory. If not set, *true* will be used by default. | | loadfile.deletefailure.iserror | If the loaded file cannot be deleted, an error will be thrown, if set to *true*. If not set, *false* is used by default. | | loadfile.nonexist.iserror | If set to *true*, an error will be thrown, if the file to be loaded cannot be found. If set to *false*, empty data will be passed to the Mapping. If not set, *true* will be used by default. | > [!NOTE] > **NOTE:** > > - To define the file name explicitly, it has to be written between *\Q* and *\E.* > - You have to place an escape character *\* in front of the character *\*, the character sequence :=, and a whitespace. So, for example, *\\* or \:=. ## Example file ```load loadfile.filename.srcregex=([^\.]+)\.txt ``` Cuts off ".txt". Optional intermediate phase before Phase 2. A preparser manipulates input data before the parser processes it; for example, to remove special characters or convert an unknown format to a supported one. The core task of Phase 3. Mapping transfers data from the source structure to the target structure according to defined rules. In the process, fields can be transformed, functions can be called, and values can be calculated.