I am trying to write a simple regular expression to match the percentage range of 1% -100%
Is there a better way to write this?
^([1-9]|[1-9][0-9]|100)%$
You can make it a little shorter:
^([1-9][0-9]?|100)%$
Source: https://habr.com/ru/post/1742295/More articles:Number of SQL queries in a column - sqlHow to create a generic UniqueValidationAttribute attribute in C # and DataAnnotation? - c #How to wrap a very long line of text on a GWT label? - gwtWPF MVVM KeyBinding is not recognized immediately and does not always work - wpfDetecting keyPress inside an iframe using jQuery - jqueryHow to convert a DataSet to an ObjectContext (Entity Framework) on the fly? - c #ffmpeg splits into frames - ffmpegiPhone The same training profile for another application? - iphoneJava / Swing: JTable.rowAtPoint not working correctly for points outside the table? - javaHow to check if an image exists in a photo album while saving an image in a photo album - iphoneAll Articles