Skip to main content
added 4 characters in body
Source Link
Pranay Jaiswal
  • 36.4k
  • 17
  • 79
  • 138

I am trying to validate a version number string. something like #.#.#.#

can you please tell me if the below is correct

^[0-9]{1,2}(.[0-9]{1,2})?

^[0-9]{1,2}(.[0-9]{1,2})?

how do i restrict this to just 4 decimals?

I am trying to validate a version number string. something like #.#.#.#

can you please tell me if the below is correct

^[0-9]{1,2}(.[0-9]{1,2})?

how do i restrict this to just 4 decimals?

I am trying to validate a version number string. something like #.#.#.#

can you please tell me if the below is correct

^[0-9]{1,2}(.[0-9]{1,2})?

how do i restrict this to just 4 decimals?

Source Link

apex regex validation. for version number string

I am trying to validate a version number string. something like #.#.#.#

can you please tell me if the below is correct

^[0-9]{1,2}(.[0-9]{1,2})?

how do i restrict this to just 4 decimals?