DataFakery Studio
🏠 Home💬Support
  • What is DataFakery Studio?
    • 🚀What's new in 2025.1
      • Changelog Archive
    • Editions / Licenses
    • Installation requirements
    • Setup guide
    • 👩‍💻Roadmap
  • Guides
    • Creating a DataFakery Project
    • Anonymize Microsoft SQL Server Data Source
    • Anonymize PostgreSQL Database
    • Anonymize MySQL Database
    • Docker Integration
    • Export to CSV File
  • Fundamentals
    • Project
    • Data Sources
    • Data Models
      • Virtual Tables
    • Generators / Fakers
      • Strings
      • Numbers
      • Date & Time
      • Custom Expression
      • Text Pattern
      • Regular expressions
      • Foreign Keys Generator
      • Table Lookups
      • Default Values
      • Sequence Generator
      • Constant Value
      • List Values
    • Randomizer Options
    • Optimizations
    • Data Exploration
  • Extras
    • Data Storage
    • Keyboard Shortcuts
    • Appearance / Theme
  • Support
    • Contact Support
    • Troubleshooting
Powered by GitBook
On this page
  • Faker Configuration
  • Example

Was this helpful?

  1. Fundamentals
  2. Generators / Fakers

Regular expressions

Generates a string based opn a custom regular expression (Regex)

PreviousText PatternNextForeign Keys Generator

Last updated 11 months ago

Was this helpful?

Faker Configuration

  • Pattern: Enter the regular expression pattern to generate the data. For example, [a-z0-5]{10} generates a 10-character string consisting of lowercase letters and digits from 0 to 5. Click on ... button to display the Regex Expression Editor.

  • Add Suffix: Enter any additional suffix to append to the generated data (optional).

  • Replace only if Non-Null: Check this box to ensure that the faker only replaces non-null values in the column. If unchecked, it will replace all values, including nulls.

Example

The regular expression "[a-z0-5]{10}" specifies a pattern that matches any sequence of 10 characters which are either lowercase letters between 'a' and 'z' or digits between '0' and '5'. The curly braces { } indicate that the preceding character set [a-z0-5] should be matched exactly 10 times.