2016-04-27 88 views

回答

2

試試這個:

^(?:[2-9]\d|[1-2]\d{2})(?:[.,]\d{1,2})?$|^300(?:[.,]0{1,2})?$ 

流程圖解釋:

enter image description here

Regex101

+0

這是驚人的!它工作真棒!謝謝youuu @timolawl –

+0

不客氣! :) – timolawl