Skip to main content
New Voice
February 21, 2025
Solved

Regex formatting Question

  • February 21, 2025
  • 2 replies
  • 99 views

I am looking to input a text field for customers. I want them to be able to put in numbers with decimals, between a certain target value and 100. In this case, lets say 3. The issue i am running into, is that docusign is recognizing only the 1st digit in the sequence, and so while answers like 35, 62 and 90 are accepted, answers like 12 and 29 are not. I would like docusign to recognize double digit numbers, while still adhering to the lower end threshold.
Here is the formula i currently have, any advice would be greatly appreciated. 
^(?:[3-9]?\d(\.\d{1,2})?|100(\.00)?)$
 

Best answer by JohnSantos

@Jack.s 

Try using this instead:

^(?:3(\.\d{1,2})?|[4-9]\d?(\.\d{1,2})?|100(\.00)?)$
 

2 replies

JohnSantos
Guru
Guru
February 21, 2025

@Jack.s 

Try using this instead:

^(?:3(\.\d{1,2})?|[4-9]\d?(\.\d{1,2})?|100(\.00)?)$
 

Welcome to the DocuSign Community! Your feedback is highly valued. If you find my response helpful, please give it a "Like" and consider marking it as the "Best Answer" to assist others with similar issues.
Docusign Employee
February 28, 2025

Hello ​@Jack.s,

 

I hope you are doing well. I want to confirm if you were able to solve your issue by utilizing the suggested solution or if the information provided was useful. If so, please mark it as the "Best Answer " by clicking “Select as Best” to make it easier for other users to find. Otherwise, let me know and I will gladly help you address the situation as soon as possible.

 

Thank you!

 

Best regards,

Melanie | Docusign Community Moderator

"Select as Best" below if you find the answer a valid solution to your issue.