How to allow numbers and decimals in string
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 05:08 AM
Hi All,
How can we create regex to allow numbers and decimals in string variable.
For ex: 1234, 12334.89
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 05:13 AM
There is already a regex in service now OOB instance for this, you just need to use that.
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 12:17 AM
@pramodkumar Did you get your issue fixed?
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 10:26 PM
@pramodkumar did this work for you?
Raghav
MVP 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2023 05:14 AM
Hi @pramodkumar
You can create regex as below screenshot.
and use that regex in single line text variable :
ServiceNow Developer
I know one thing, and that is that I know nothing.
- Socrates