Skip to main content
Nintex Community Menu Bar
Solved

REGEX Building

  • May 20, 2024 10:51 PM UTC
  • 2 replies
  • 95 views
  • Translate All

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 Simon Muntz

Hi @kpope 

^\d{4}

This will select the first 4 digits.

View original

2 replies

Simon Muntz
Nintex Partner
Forum|alt.badge.img+23
  • Nintex Partner
  • Answer
  • May 20, 2024 10:57 PM UTC

Hi @kpope 

^\d{4}

This will select the first 4 digits.

Translate

kpope
Forum|alt.badge.img+7
  • Author
  • Apprentice
  • May 20, 2024 11:37 PM UTC

Thank you! 

Translate