Skip to main content
Nintex Community Menu Bar
Solved

REGEX Building

  • May 20, 2024
  • 2 replies
  • 69 views

kpope
Forum|alt.badge.img+7

REGEX Building - I need help/to learn how to build these patterns. 

For this project, I have a pdf in a doclib. 

Filename: 0000_2025-2025TypeofDoc.pdf. 

I need the Pattern to extract the 4 numbers at the beginning of the filename. 

[^/]{4}  is what I have, which is either wrong or incomplete. 

 

Best answer by SimonMuntz

Hi @kpope 

^\d{4}

This will select the first 4 digits.

2 replies

SimonMuntz
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • Answer
  • May 20, 2024

Hi @kpope 

^\d{4}

This will select the first 4 digits.


kpope
Forum|alt.badge.img+7
  • Author
  • Apprentice
  • May 20, 2024

Thank you!