--- title: "TextPreParser" slug: "text-pre-parser" updated: 2026-09-09T12:49:42Z published: 2026-09-09T12:49:42Z canonical: "docs.lobstersoftware.com/text-pre-parser" --- > ## 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. # TextPreParser | **Class name** | com.ebd.hub.datawizard.parser.TextPreParser | | --- | --- | ## Description Very similar to the [PDFPreParser](/v1/docs/en/pdf-pre-parser), this Preparser serves to extract a few details from an unstructured text file that would otherwise be difficult or impossible to extract with a "normal" profile. For technical details, see the PDFPreParser documentation and the example below. The root element is *TextPreParser* instead of *PDFPreParser*. ## Example Assume the following, somewhat scattered input file. ```input ************************************************************************************************ Note.............: Load. Unit.......:  S90     2 Swap bodies 7.45 Booked GM3.......:     80   Muster contact:   Max Muster Weight KG........:  24000   Tel.........: Ord. LM..........:      0   Fax.........:   max@muster.com Loading:    180516 20:30                  1 of 1  Unloading:  180517 04:00 ------------------------------------------------------------------------------------------------ 053-DT-1                                          147-STO-1 Max Muster AG                   Muster-Straße 1                              Büttnerstraße 21 30165     Hannover                                  30165     Hannover DE GERMANY                                        DE GERMANY +4918049200         Fax:+491804926600             +4918044240         Fax:+491803424232 Sender Ref No: Consignment              GM3 Euro/Muster/Half  Loading unit ID      Pack Receiver ------------------------------------------------------------------------------------------------ 053-DT-180514147546     46.6    0    0    0 ------------------------------------------------------------------------------------------------ ================================================================================================ B/L No...........:                                Car Ref: Shipment ID......:  003-DSO-S3543110    (Shipment ID to be entered on the freight invoice) INCOTERMS........:  DDU CONSIGNEE Transport Agreement Reference: 2125-COM-807-30 Agreed Price FREI              560  EUR -------------------------- Seller...........:  Example GmbH          Hauptstraße 21          GERMANY                    30165 Hannover            4951167222202             Fax: 51167491222 Buyer on Invoice.:  Muster AG            Musterstraße 15             GERMANY                    30165 Hannover             +49421588535600              Fax: +41588535601 Invoice Receiver.:  Muster AG                   Musterstraße 15                 GERMANY                    30165 Hannover             +49147681000               Fax: +492347615732 *** END OF DOCUMENT *** ``` To get this data under control, we use the following configuration file for the preparser in a profile named *TextPreParserProfile*. ```TextPreParser TextPreParserProfile 1 100 LoadUnit Load. Unit.......: 1 SwapBodies 2 Swap bodies 1 ShipmentID Shipment ID......: 1 Address 053-DT-1 Sender Ref No: Name 1 Street 2 City 3 Country 4 AdressID 053-DT- 1 ``` ### Download You can download and import the profile [TextPreParserProfile.pak](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/Profile-TextPreParserProfile%20(1).pak) as an example. Of course, the extracted data can be refined to your liking in the target structure. - [TextPreParser.xml](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/TextPreParser.xml) (already integrated in the profile, but here again explicitly). - [input.txt](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/input.txt) (already integrated in the profile as test data, but here again explicitly for manual upload). 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.