Numric Regex with ":" how to add -


I am using the following regsx which is working fine for numbers, only me ":" how do i

This is not working for me ...

  @ "^ [0- 9] (:) + \ s * $"   

for example

  80:80 8000 8    

You can do this with the following regex:

^ \ d [\ d:] * \s * $

Demo:

Comments

Popular posts from this blog

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -

c# - Split String between 2 substrings without removing delimiters -

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -