Using Regular Expressions (Create Cards and Match)

Alina Sonke
March 29, 2025
1 min read
Product Updates

RegEx (regular expression) patterns are a standard type of coding used to match text.

In DocBoss, we use RegEx to parse card metadata from the file names when using the Create Cards and Match feature.

Formatting patterns

Common examples

  • </^[^_]*/> – take first part before first “_” for ex 123_456_789
  • </[^_]*$/> – take last part, for ex 1_23_45_67
  • </_(.*)_/> – take the middle, for ex 1_23_45_67or you can replace “_” with “-” for the expressions above
  • for example </^[^-]*/> – take first part before first “-” for ex 123456-789
  • </.*/> – takes all text (file name)

Include plain text

  • To use the entire file name (without the extension) in a RegEx field, enter only the following text: /.*/
  • To output plain text at the beginning of the value, use the following format: YourText</.*/>
  • To output plain text at the beginning of the value, use the following format: </.*/>YourText
  • To output plain text in the middle of the value, use the following format: </.*/>YourText</.*/>

Advanced

Ready to leave the
clerical grind behind?

DocBoss is the only true document control system for
suppliers. Book a quick demo to see how we help process
equipment suppliers make more profit with less pain.

Related Resources