Skip to main content
Nintex Community Menu Bar
Solved

REGEX Building


kpope
Forum|alt.badge.img+7
  • Apprentice
  • 25 replies

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.

View original
Translate
Did this topic help you find an answer to your question?

2 replies

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

Hi @kpope 

^\d{4}

This will select the first 4 digits.

Translate

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

Thank you! 

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings