DocBits- IDP for Infor ERP
HomeAppStatusAPI
🇳🇱 Nederlands
🇳🇱 Nederlands
  • Overzicht en basisprincipes
    • DocBits
      • Belangrijkste Kenmerken van DocBits
    • Architectuur
      • DocBits Infor on Premise Klant
      • Certificeringen
    • Infor Infrastructuur
    • Release-opmerkingen
  • Eindgebruiker en partners
    • Eindgebruikerssectie
      • Dashboard
        • Dashboard Tools
        • Documenten Samenvoegen
        • Documentstatus
        • Documenten Filteren
        • Overzicht van Geüploade Documenten
        • Taakenteller
        • Gevalideerde Geëxtraheerde Velden
        • Documentflow
        • Problemen oplossen
        • Toetsenbord Sneltoetsen
      • Taken
      • Advance Shipment Dashboard
      • Dashboard voor inkooporders
      • Factuurdashboard
      • Shipment Order Dashboard
      • Gebruikersconfiguratie-opties
      • AI Tabel
        • AI Tabel Tags
      • Validatiescherm
        • Vage Gegevens
        • QR-codes
        • Toetsenbord Sneltoetsen
      • Doel en Gebruik
      • Inkooporder Matching
        • Automatische Afstemming van Inkoopordergegevens
        • Leverancier Artikelnummer Map
        • Toetsenbord Sneltoetsen
      • Boekhouding voor Kostfactuur en Indirecte Verkoop
      • Hoe Documenten te Importeren
        • FTP
        • Handmatige Import
        • Webhook
        • E-mail
          • IMAP
          • OAuth Office365
      • Technische Ondersteuning in DocBits
        • Maak een ticket aan
        • Help-pictogrammen
      • Cursus
        • Introductie
        • Dashboard
        • Geverifieerde Documenten
        • AI Table
        • Master PO Matching met DocBits
      • Ons Document Prioriteit Systeem
      • Leverancier Portaal
        • Leverancier Registratie
        • Leverancierstatus
      • Bronnen en ondersteuning
        • Gebruikersondersteuning
    • Partner Sectie
      • Factuurautomatiseringstest met DocBits
  • Administratie en instelling
    • Instellingen
      • Global Settings
        • Bedrijfsinformatie
          • Defining App Color in Company Settings
        • Groups, Users and Permissions
          • Gebruikers
            • Modifying User Details
            • Admin Privileges
          • Suborganisaties
            • How to create a Sub-Organization
          • Groepen en Machtigingen
            • Purpose and Use
            • Adding/Editing Groups
            • Machtigingen activeren
            • Toegangscontrole
            • Troubleshooting
        • Integration
          • API Key
          • API Calls and Examples
          • API Key Management
          • Configuring Single Sign-On (SSO)
            • Infor SSO Configuration
              • V1
              • V2
              • Azure SSO
          • Identity Service Provider Configuration
          • Best practices
          • Troubleshooting Common Issues
        • Documenttypes
          • Purpose and Scope
          • Adding/Editing Document Types
          • Activation
          • Customization Options
          • Best Practice
          • Troubleshooting
          • Layout Manager
            • Purpose and Use
            • Navigeren in de Lay-outbeheerder
            • Configuring Field Properties
            • Using the Template Preview
            • Save and apply changes
            • Best practices
            • Troubleshooting
          • Document Sub Types
          • Creating a new Sub Type
          • Configure subtypes
          • Using Actions
          • Best Practices
          • Tabelkolommen
            • Purpose and Use
            • Adding a new Column
            • Editing and deleting columns
            • Best practices
            • Troubleshooting
          • Velden
            • Purpose and Use
            • Configuring Field Properties
            • Setting Validation and Match Score
            • Velden Toevoegen en Bewerken
            • Best practices
            • Troubleshooting
            • New Fields with Charges
          • Modeltraining
            • Purpose and Use: Model Training
            • Import Data: Model Training
            • Manage training data
            • Testing the model
            • Best practices
            • Troubleshooting
          • Regex
            • Purpose and use
            • Creating a Regex Pattern
            • Editing and Saving Regex Patterns
            • Best practices
            • Troubleshooting
          • Script
          • Script Activation and Management
          • Testing Scripts
          • Purpose and Use
          • Creating and Editing Scripts
          • Best Practices
          • Troubleshooting
          • e-docs
            • Purpose and Use
            • Setting Up EDI Templates
            • Using the XSLT Editor
            • Previewing EDI Messages
            • Best Practices
            • Troubleshooting
            • XRechnung
              • Standard Preview
            • Mapping XRechnung in DocBits
              • TOML Export
            • EDI 810 (Invoice) Mapping
            • EDI 850 (Purchase Order) Mapping
            • EDI 855 (Purchase Order Acknowledgement) Mapping
            • EDI 856 (Advance Shipment Notice) Mapping
            • Peppol BIS Billing 3.0
            • eSLOG 1.6 en 2.0
          • Meer Instellingen
            • Purpose and use
            • Best practices
            • Troubleshooting
            • Behandeling van dubbele documenten
            • Goedkeuringsstempel
            • Supplier Item Number Map - Admin Documentation
            • Aankooporder tolerantie-instellingen / Extra aankooporder tolerantie
            • Aankooporder uitschakelen statussen
            • PO-tabel in Layout Builder
            • Automatische controle op PO-updates
            • Eenheidsprijs PO berekenen
            • Export niet gematchte PO-regels
        • E-mailmelding
          • Configuring Notifications
          • Managing Notifications
          • Best Practice
          • Troubleshooting
        • Custom Filters
        • Dashboard
          • Customizing Filters
      • Documentverwerking
        • Documents Expiry
        • Importeren
          • Test: Multi Email Import and Handling Tests
          • Test: Email Import and Handling Tests
          • Test: FTP Import Connection
          • Test: File Import 1
        • Regelbeheerder
          • TransactionConfig Pro Template
            • Case 1, 2, 3: Quantity and Unit Price Within Tolerance
            • Case 4, 5: Quantity Within Tolerance, Unit Price Outside Tolerance (Approved)
            • Case 15: Charge Line - Charge Per Unit Outside Tolerance (Rejected)
            • Case 14: Header Charge - Charge Per Unit Outside Tolerance (Approved)
            • Case 12, 13: Header Charge - Charge Per Unit Within Tolerance
            • Charge Per Unit Outside Tolerance (Rejected)
            • Case 14: Charge Line - Charge Per Unit Outside Tolerance (Approved)
            • Charge Per Unit Within Tolerance
            • Case 11b: Quantity Outside Tolerance (Positive Rejected), Unit Price Outside Tolerance (Rejected)
            • Case 10b: Quantity Outside Tolerance (Negative Rejected), Unit Price Outside Tolerance (Rejected)
            • Case 8b, 9b: Quantity Outside Tolerance (Approved), Unit Price Outside Tolerance (Approved)
            • Case 11a: Quantity Outside Tolerance (Positive Rejected), Unit Price Within Tolerance
            • Case 10a: Quantity Outside Tolerance (Negative Rejected), Unit Price Within Tolerance
            • Case 7: Quantity Within Tolerance, Unit Price Outside Tolerance (Positive Rejected)
            • Case 6: Quantity Within Tolerance, Unit Price Outside Negative Tolerance (Rejected)
            • Case 8a, 9a: Quantity Outside Tolerance (Approved), Unit Price Within Tolerance
            • Case 15: Header Charge - Charge Per Unit Outside Tolerance (Rejected)
            • Tax Lines
        • Ocr-instellingen
        • Classificatie En Extractie
          • Tabelextractie voor kostenelement
          • Auto extract belastingcode
        • Master Data Lookup
        • Lijst van Waarden
        • Exporteren
        • Module
          • Annotatiemodus
          • Approval Before Export
          • Doc Scan
          • Doc Script
          • IDM ACL Updater
          • Swiss QR Code
          • Auto Export if PO Matched 100%
        • Beslisbomen
      • Loginstellingen
        • Taakbeheer
        • Gegevenssynchronisatie
      • Leverancier Instelling
        • Leverancier Algemene Instellingen
        • E-mail Sjablonen Bewerken
        • Exportconfiguratie voor Leverancierportaal voor M3
      • API-Licenties
      • Cachebeheer
    • Workflow
      • Release
      • When
        • Card description
        • Document Operator for Sub-Organizations
        • Document Type Operation
      • And
        • Assigned User Condition
        • Checkbox Field Condition
        • Checkbox
        • Combined Price of Quantity Difference
        • Compare two fields
        • Compare with Purchase Order
        • Confirmed Delivery Date
        • Docfield is
        • Document Field Comparison
        • Document Field
        • Document Status Condition List
        • Document Type Operation one of
        • In Order Confirmation Purchase Order
        • Single Assigned User Condition
        • Single Document Status Condition
        • Supplier on Invoice
        • Text in field
        • Unit Price Combined with Fields
      • Then
      • Workflow Example: Conditional Export Trigger
      • Workflow Documentation
      • Standard Workflow
        • Above Max Amount
        • Cost Invoice - Export
        • Less than Max Amount
        • Purchase Invoice - 2nd Approval Quantity Export
        • Purchase Invoice - 2nd Approval Quantity
        • Purchase Invoice - 2nd Approval Unit Price Export
        • Purchase Invoice - 2nd Approval Unit Price
      • Material Ordering and Processing Workflow
    • Setup
      • Document Types
        • EDI Data Transformation Process
        • Layout Builder
        • Origin Layouts
        • Regex Manager
      • Document Training
        • Training Header Fields
        • Training Line Fields/Table Training
          • Adding New Columns
          • Advanced Settings
          • Defining Tables and Columns
          • Grouping Function
          • Manual Row Selection
          • Mapping Columns
          • Save and Delete Rules
      • Stream for Cloud Customers
      • Testing
        • PO Matching
        • Auto Accounting
          • LN
          • M3
      • Leveranciersportaal
      • WatchDog Installatie
  • Infor integratie en configuratie
    • Importing Master Data
      • Field Mappings
      • LN
        • Auto Accounting
        • Suppliers and Purchase Orders
        • Tax Codes
      • M3
        • Auto Accounting
        • Suppliers and Purchase Orders
        • How to import all suppliers
        • Tabelextractie voor kostenelement
      • Custom Master Data
    • Exporting in DocBits
      • Export Module
    • Exporting to INFOR
      • Creating a BOD Mapping File
      • Een IDM Mappingbestand maken
      • Creating an ION API Endpoint
      • Creating an ION API File
      • Export to M3 Mapping (API)
      • Exporting to IDM
      • Order Confirmation
      • M3
        • Handling Charges with Infor M3
        • M3 Configuration
      • LN
        • Exporteer Belastingcodes naar LN
        • LN Configuration
      • Page
  • Geavanceerde functies en tools
    • Scripting in DocBits
      • Calculating Total Charges Script for Docbits
      • Calculating Total Charges Script for Docbits
      • Delete lines with empty quantity and amount
      • Formatting Export Certificate Reference Numbers Script for Docbits
      • Functies
      • Generating Extended Invoice Numbers Script for Docbits
      • Generating Extended Invoice Numbers Script for Docbits
      • USD as Default Currency
    • Course
      • A Step-by-Step Guide
      • Connect DocBits with Infor SSO
      • Create your Custom App in Infor OS
      • Infor OS with DocBits API Integration
      • M3 Export
      • Sync Flex Dimensions: Infor to DocBits
    • Postman for DocBits
    • SQL Access
    • Leverancier- en Inkoopordergegevens importeren in DocBits vanuit CSV-bestanden
    • PowerBI
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Administratie en instelling
  2. Instellingen
  3. Global Settings
  4. Documenttypes
  5. Regex

Editing and Saving Regex Patterns

PreviousCreating a Regex PatternNextBest practices

Was this helpful?

Guide to modifying existing patterns and the importance of testing those changes to ensure they work as expected without breaking existing functionality.

To edit existing regex patterns and ensure the changes work as expected without breaking existing functionality, you can follow the guide below:

Analyze the existing pattern:

  • Examine the existing regex pattern to understand what data it captures and how it works.

  • Identify the parts of the pattern that need to be changed and the impact of those changes on the data captured.

For example: The invoice amount is to be read out:

  • (?<=Rechnungsbetrag:)[\s]*((((\d+)[,.]{1,10})+\d{0,2})|(\d+(?!,)))

    Rechnungsbetrag: 100.00

  • Read the amount with 1000s dot but NOT pass the dot

    [\d.][,\d]

    Allowed characters: 0123456789,

  • The value "P32180" is to be read out. Anchor word here is "Invoice Date".

    (?<=InvoiceDate )[\s]*P\d{5}

    Customer number Invoice number Invoice date P32180 613976 05/13/2019

Document the changes:

  • Take notes about the changes you plan to make to the regex pattern.

  • Note what new patterns you plan to add and what parts of the existing pattern may need to be changed or removed.

Prepare test data:

  • Collect test data that is representative of the different types of data the regex pattern typically captures.

  • Make sure your test data covers both typical and edge cases to verify the robustness of your changes.

Make changes to the regex pattern:

  • Make the planned changes to the regex pattern.

  • This may include adding new patterns, removing or adjusting existing parts, or optimizing the pattern for better performance.

Test the changes:

  • Apply the updated regex pattern to your test data and carefully review the results.

  • Verify that the pattern still correctly captures the desired data and that there are no unexpected impacts on other parts of the data or system.

Debugging and adapting:

  • If test results are not as expected or unexpected issues occur, carefully review your changes and make further adjustments as needed.

  • This may include reverting certain changes or adding additional adjustments to fix the problem.

Document the changes:

  • Update the documentation of your regex pattern to reflect the changes made.

  • Describe the updated patterns and the reasons for the changes made to help other developers understand and use the pattern.

Saving the changes:

  • Once you are sure that the changes are successful and work as expected, save the updated regex pattern to your code base or configuration files to ensure they are available for future use.

By following these steps and carefully testing changes to regex patterns, you can ensure that your regex pattern continues to work correctly while meeting new requirements.

Settings: Document Type
Save Changes