2016-06-07 167 views
0

我有一個允許用戶輸入折扣百分比的文本框。我需要一個正則表達式來檢查輸入的值。它應該是「0」到「99.99」。在我的知識範圍內嘗試了一些東西,那並不完美。用於百分比檢查器的正則表達式

在此先感謝。

+1

[正則表達式匹配帶小數的百分數?](的可能的複製http://stackoverflow.com/questions/12144276/regular-expression-to-match-a-percentage-與十進制)或[正則表達式驗證百分比](http://stackoverflow.com/questions/24679030/regular-expression-to-validate-percentage) – Draken

回答