# Alpha regex number validation issue

**URL:** https://community.neutrinos.com/t/alpha-regex-number-validation-issue/969
**Category:** Support Request
**Tags:** neutrinos-alpha
**Created:** [July 22, 2025, 11:39am UTC](https://community.neutrinos.com/t/alpha-regex-number-validation-issue/969 "2025-07-22T11:39:21Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Ziyad](https://community.neutrinos.com/user_avatar/community.neutrinos.com/ziyad/32/343_2.png) [@Ziyad](https://community.neutrinos.com/u/Ziyad)
#### Post date: [July 22, 2025, 11:39am UTC](https://community.neutrinos.com/t/alpha-regex-number-validation-issue/969/1 "2025-07-22T11:39:21Z")

</div>

![image](https://community.neutrinos.com/uploads/default/original/1X/cf88a7447c7006163df51c95ff01e34e7be98bf7.png)

Hi team,

I’ve configured a field with the following regex pattern:

`^\d+$`

However, I’m encountering an issue where the field still shows a validation error even when I enter a valid number. Please refer to the attached screenshots for reference.

Could you kindly help me understand what might be causing this issue or suggest any corrections needed?

 ![image](https://community.neutrinos.com/uploads/default/original/1X/7470643d3002f8fda0802f3cc25cdac3ad9819c1.png)

---

<div class="post-metadata">

### Author: ![Simphiwe](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@Simphiwe](https://community.neutrinos.com/u/Simphiwe)
#### Post date: [July 22, 2025, 12:05pm UTC](https://community.neutrinos.com/t/alpha-regex-number-validation-issue/969/2 "2025-07-22T12:05:36Z")

</div>

Hi @Ziyad

Please try ensuring that the is no space before and after your number.  
Then click outside the input, let me know if you still getting the error.

Thank you.

---

<div class="post-metadata">

### Author: ![Ziyad](https://community.neutrinos.com/user_avatar/community.neutrinos.com/ziyad/32/343_2.png) [@Ziyad](https://community.neutrinos.com/u/Ziyad)
#### Post date: [July 22, 2025, 12:08pm UTC](https://community.neutrinos.com/t/alpha-regex-number-validation-issue/969/3 "2025-07-22T12:08:40Z")

</div>

Hi @Simphiwe ,

Thank you for the suggestion.

I’ve ensured that there are no spaces before or after the number, but I’m still encountering the same issue.

Thank you.

---

<div class="post-metadata">

### Author: ![Simphiwe](https://community.neutrinos.com/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@Simphiwe](https://community.neutrinos.com/u/Simphiwe)
#### Post date: [July 22, 2025, 12:19pm UTC](https://community.neutrinos.com/t/alpha-regex-number-validation-issue/969/4 "2025-07-22T12:19:18Z")

</div>

Okay thank you for confirming.

Can you please just add ^\d+$ without / at the beginning and at the end

---

<div class="post-metadata">

### Author: ![Ziyad](https://community.neutrinos.com/user_avatar/community.neutrinos.com/ziyad/32/343_2.png) [@Ziyad](https://community.neutrinos.com/u/Ziyad)
#### Post date: [July 22, 2025, 12:56pm UTC](https://community.neutrinos.com/t/alpha-regex-number-validation-issue/969/5 "2025-07-22T12:56:06Z")

</div>

Thank you so much, @Simphiwe — the solution worked perfectly. I really appreciate your help!
